Sign In/My Account | View Cart  
advertisement

Article:
 The Road to XHTML 2.0: MIME Types
Subject: createElement
Date: 2003-05-03 06:42:07
From: Garrett Smith

The mime-type is not tricky, but the cross browser problems are.


JS DOM bindings are faster w/XHTML, but if I use createElementNS, it won't work in IE.


So I can use a branch:


if(createElementNS) {
}
else{
}


But this introduces overhead, especially in a lengthy loop of creating a table of many rows.


Also, document.write doesn't work with XHTML in Mozilla. document.write works with HTML in mozilla, but not properly (it is bugged).


Previous Message Previous Message   Next Message Next Message


Sponsored By: