[whatwg] Section 3.3.3.2 Attribute value normalization and title attributes

On Wed, 5 Aug 2009, Elliotte Rusty Harold wrote:
> On Mon, Aug 3, 2009 at 3:18 AM, Ian Hickson<ian at hixie.ch> wrote:
> 
> > I don't really see why the minor difficulties in the XML syntax would
> > affect the semantics here. Could you elaborate on your concern? What
> > problem would changing this solve?
> 
> The spec already indicates caution about newlines in title attributes: 
> "Caution is advised with respect to the use of newlines in title 
> attributes." It's a bit of a red flag to note warnings like this into 
> the spec. I.e. features that one is encouraged not to use. Best to take 
> them out, I think. It would save some grief if newlines were simply 
> prohibited in title attributes, and were normalized to spaces if they 
> did appear. The concern is that both human authors and machines pretty 
> printing the HTML are going to insert line breaks where they don't 
> actually want them.

There have been a _lot_ of requests from authors to include a feature 
allowing newlines in tooltips, so I don't think we can remove this.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 5 August 2009 16:07:51 UTC