A document uses XHTML 1.0 Strict. It contains a few
<blockquote>s, and in Strict they are not allowed to have text nodes as children. Instead, any text in the element should be marked up in a block level element, for instance
<p>. Initially the document satisfies this requirement.
After the document has loaded a script similar to Simon Willison's Blockquote Citations runs in the document and adds the content of the
cite attribute of each
<blockquote> to the visible text of the quote. Due to an oversight of the programmer the script does not put this text in a block level element of its own. Now the
<blockquote> has a text node as a child.
Has the restructured document now become invalid XHTML 1.0 Strict? Or does only the initial state count, and does the document remain valid? If it were technically possible, should the validator run the script and judge the resulting document?
If you like this blog, why not donate a little bit of money to help me pay my bills?
Comments are closed.