[Home] [By Thread] [By Date] [Recent Entries]

  • From: Steve Newcomb <srn@c...>
  • To: Liam Quin <liam@w...>
  • Date: Mon, 26 Oct 2015 11:31:59 -0400

Follow-up: As nearly as I can tell, the W3C Recommended syntax of start tags in all versions of HTML is such that it's OK for SPACE+ to appear before, after, and between attribute value specifications. And SPACE does include LFs and CRs.

On 10/25/2015 05:22 PM, Liam Quin wrote:
On 2015-10-26 05:57, Steve Newcomb wrote:
[...]
 FYI: The reason I got into the XML canonicalization document is that
I was surprised to discover that Firefox dislikes carriage-returns and
linefeeds between attribute specs in start tags in HTML, at least in
that it can't trivially pre-discover certain info in certain <meta>
elements so represented.
The way to answer this for HTML documents is to look at the HTML 5 spec;
if it's not answered there, file a bug against HTML 5.1. If it is answered,
file a bug if browsers don't follow what it says.

For the XML syntax of HTML 5, the XML Rec (1.0 5e I think, but check the references in HTL 5) would be an appropriate reference.

Within attribute values themselves, of course, attribute value normalization applies when parsing XML.

Liam








[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member