![](https://secure.gravatar.com/avatar/214fe9a0ecb4aed8994e8618ade6f5a8.jpg?s=120&d=mm&r=g)
On 5/9/2009 1:11 PM, Chris Lilley wrote:
On Saturday, May 9, 2009, 4:17:02 AM, Jimmy wrote:
J> I basically created a working patch (excluding end of string line breaks J> and probably spacing issues). The patch checks if the text in contained J> in a text box is a child ofsvg:text instead ofsvg:tspan . If this J> is true a<tspan> is inserted as a child of the<text> and the string is J> transfered to become a child of the<tspan>
While this will work, its not clear to me why Inkscape always requires text nodes to be a child of a tspan element rather than also allowing them to be directly as a child of a text element.
Are mixed content models a problem?
Note that any scripts which manipulate text are likely to be broken by moving content into a child element.
I have a small question about the SVG-DOM api.
Why is it, that for every DOM list, (NodeList for example) , there is a readonly "length" property, and an "item(index)" accessor method,
but in contrast in SVG, the property is "numberOfItems", and the accessor is getItem(index) ?
bob (ishmal)