[imps] HTML5 and libxml2

Geoffrey Sneddon foolistbar at googlemail.com
Sun Apr 6 10:36:56 PDT 2008


On 6 Apr 2008, at 18:16, Edward Z. Yang wrote:

> Geoffrey Sneddon wrote:
>> What happens when you set DOMDocument::$strictErrorChecking to  
>> false? In
>> the DOM spec, behaviour then is undefined.
>
> This is a proprietary extension, and defines whether or not PHP should
> throw actual Exceptions with DOM errors, or emit warnings.

It's not proprietary: it's part of DOM Level 3 Core, as PHP claims to  
implement (see <http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-strictErrorChecking 
 >).

> The behavior
> with DOM, provided the exception is properly caught, remains the same,
> as after the C code invokes the exception or emits the error,  
> control is
> passed back to the PHP interpreter.

Ah. So therefore it doesn't actually allow the DOM to hold characters  
it otherwise wouldn't (like a a@ localName).


--
Geoffrey Sneddon
<http://gsnedders.com/>




More information about the Implementors mailing list