This may be a bug in Wordpress, or it may be my misunderstanding of
plain ol' XHTML; it affects both Gecko and IE.
A user wrote a post using the Wordpress editing interface, which
generated the following XHTML.
<div id="1"><p><strong /></p></div>
<div id="2">...</div>
Note that <strong /> -- it makes Firefox 1.5.0.7 generate this DOM:
<div id="1"><p><strong></strong></p></div>
<div id="2"><strong>...</strong></div>
That is, using an inline element in the first div influences the DOM
generated in the second div. Isn't that wrong?
If you're serving XHTML as text/html (which means browsers handle it as
HTML, not XHTML), you have to follow the guidelines in Appendix C of
XHTML 1.0, which this does not:
> <div id="1"><p><strong /></p></div>
-David
--
L. David Baron <URL: http://dbaron.org/ >
Technical Lead, Layout & CSS, Mozilla Corporation
Yes, I am serving it as text/html.
In case it would be a point of interest, the W3 validator accepted it as
XHTML transitional.
I suppose I should go file a bug in Wordpress re: Appendix C. I'm
assuming you're referring to Appendix C.3?
Yeah, that's a bug in the validator (bug 1500, if you care).
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
The bug there is the HTML Working Group, not the Validator...
--
Björn Höhrmann · mailto:bjo...@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/