I'm using text-field() in our custom CSS to allow the user to edit an
attribute within the document view:

  content: text-field(attribute, id);

While this generally works well, there is one issue we've experienced:

1.      Type a value into the field and press Enter to apply it.
2.      Delete the contents of the field. Press Enter. The change is not
applied.
3.      Attempt to move the cursor to another part of the document. Focus
remains in the field.
4.      Type another value into the field and press Enter. Focus can now be
moved elsewhere.

In summary, once a value has been applied to an attribute, you can't delete
the contents of a text-field() bound to that attribute.

Is this the expected behaviour?

 SitePoint logo <http://www.sitepoint.com/images/sitepoint-logo.gif> 

Kevin Yank
Technical Director

SitePoint Pty. Ltd.
e: kevin at sitepoint.com
w: http://www.sitepoint.com/
p: +61 3 9419-5200

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060531/da74fb8a/attachment.htm
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1164 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060531/da74fb8a/attachment.gif
 

Reply via email to