[whatwg] IDness and warnings

Henri Sivonen hsivonen at iki.fi
Mon Nov 6 06:54:09 PST 2006


On Nov 6, 2006, at 15:57, Elliotte Harold wrote:

> Henri Sivonen wrote:
>> Considering that xml:id support for Gecko has been blocked  
>> ( https://bugzilla.mozilla.org/show_bug.cgi?id=275196 ), would it  
>> be a good idea for a conformance checking service to emit a  
>> warning if an element in the XHTML namespace has an attribute  
>> whose attribute type is ID but the attribute does not have the  
>> local name "id" in no namespace?
>
> Will the conformance checking service do simple DTD validation?

It won't.

There's no DTD for XHTML5 and writing one would be a bad idea. Also,  
the conformance checking service runs the XML parser in the non- 
validating mode without resolving external entities, because XHTML  
browsers generally do not perform DTD validation and do not resolve  
external entities and it would be a bad idea for a conformance  
checker to examine a document tree that is different from what  
browsers see.

> If so, wouldn't this catch any such issues?

It wouldn't. It would be part of the problem! (The document could  
declare a random attribute to be of type ID in the DTD.)

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/





More information about the whatwg mailing list