W3C home > Mailing lists > Public > public-appformats@w3.org > January 2007

Re: [XBL] Loading and Running Scripts

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 9 Jan 2007 02:02:59 +0000 (UTC)
To: Cyril Concolato <cyril.concolato@enst.fr>
Cc: "WAF WG (public)" <public-appformats@w3.org>
Message-ID: <Pine.LNX.4.62.0701090200200.22379@dhalsim.dreamhost.com>

On Thu, 7 Dec 2006, Cyril Concolato wrote:
> 
>> In Section 3.2 "Loading and Running Scripts", if author must not do 
>> what the example shows, why not simply forbidding the use of script 
>> elements inside script elements ?
> 
> It is already forbidden.
> 
> This paragraph from Section 3.2, seems to imply it's not.
>
> "For non-XML languages, if the content is inline, UAs must concatenate 
> all the textual contents of text and CDATA child nodes, and must ignore 
> any other, non-text nodes (such as elements and comments) along with all 
> their children. All descendant elements must be processed, though, 
> according to their semantics, before the XBL script block itself is 
> executed."

You are confusing the requirements on authors and the requirements on 
implementors. It is forbidden, but the above paragraph describes what a UA 
should do when it happens.


> Additioally, the presence of the example in the specifcation goes it 
> this sense. Since you say the intent is that it is forbidden, my 
> suggestions are: remove the example or replace it with a meaningful one 
> and rephrase "All descendant elements must be processed, though, 
> according to their semantics, before the XBL script block itself is 
> executed."

The example is specifically demonstrating what the UA must do with that 
non-conforming content. I can't make it conforming, because then it 
wouldn't be showing the error handling rules.

I've tried making it more obvious that the example is invalid.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 9 January 2007 02:03:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:10:21 GMT