W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2005

[whatwg] Editing

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Wed, 20 Apr 2005 20:07:27 +0200
Message-ID: <42669A5F.7060705@annevankesteren.nl>
Brad Fults wrote:
>>Besides your other points I think it would also be important to specify
>>the content model the element can have and the possibility to restrict
>>this content model.
>>  <em contentEditable="true" exclude="a em strong span">
> Although such a selection method would be convenient, I think it makes
> more sense to specify such exceptions on the elements themselves,
> removing the need to add a new attribute. For instance,
> <div contenteditable="true">
>   <a href="#header" contenteditable="false">Header</a>
>   <a href="#footer">Footer</a>
> </div>
> In this case the first link would be manipulated as an unbreakable
> unit inside the div.

This inheritance model is already in the specification. I was proposing 
something different but I haven't really given the syntax a thought as 
James Graham points out. Excluding some elements may be nice, but you 
probably want to restrict attributes or even element/attribute values as 

  Anne van Kesteren
Received on Wednesday, 20 April 2005 11:07:27 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:40 UTC