[Bug 6808] [Ser] Whitespacing rules are too restrictive for the indent parameter

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6808


Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mike@saxonica.com




--- Comment #4 from Michael Kay <mike@saxonica.com>  2009-08-21 14:15:28 ---
I think that second rule is ambiguous:

Whitespace characters MUST NOT be added other than adjacent to an element
     node in the content of an element whose content model is not known to be
     element only."

"in the content" means "added in the content", not "element node in the
content".

There are too many double/triple negatives.

I think the rules are:

If the content model of E is known, you can add whitespace as a child of E only
if E is element-only, and you can then add it anywhere.

If the content model of E is unknown, you can add whitespace as a child of E
only immediately before a (contained) start tag or after a (contained) end tag.
(And even that is best avoided if there is any possibility that E has mixed
content).


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 21 August 2009 14:15:38 UTC