Developer's manual

Doctypes and mime-types

Doctypes make no functional difference to the menu - the structure is valid HTML and XHTML, and works correctly with any doctype.

However they do make a visual difference, because the menu widths will vary according to rendering mode, which is determined in-part by the page's doctype. (The dimensions of the navigation bar do not vary like this - they're designed to be box-model resistant.) The rendering mode can also make a behavioral difference in Internet Explorer, where a very large menu structure will be noticeably faster on a page in Standards mode, compared with the same page in Quirks mode.

Mime-types only make a difference to one specific configuration - if your page is served as application/xhtml+xml (or similar) then you cannot use dynamically-generated menus, because they're appended using innerHTML, which won't necessarily work in that environment. But this needn't be a problem, as there are two extensions available which offer compatible functionality:

User Notes

Add a note





Click to subscribe



All comments subject to administrative approval. Comments may be deleted or modified by the site administrator.


Search

We accept Visa and Mastercard

We would like your feedback! Take the UDM4 Survey!

Add to del.ic.ious

UDM 4 is valid XHTML, and in our judgement, meets the criteria for WAI Triple-A conformance.

-

Birthday lists and Wedding Registries


Internet Marketing.


Web Hosting


How much is gas?


Project Management Software