innerHTML in XML

Currently the spec says:

  If any of the elements in the serialization are in the null namespace,
  the default namespace in scope for those elements must be explicitly
  declared as the empty string.
   — http://dev.w3.org/html5/spec/#innerhtml1

Is there any reason for this?  Why not allow elements to be in no
namespace by virtue of there being no xmlns="" attribute in
ancestor-or-self::*?

Also, there are a few mentions of elements/attributes being “in the null
namespace”, which strictly should be “in no namespace”.

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Sunday, 1 June 2008 04:59:11 UTC