Hi all, I have a doubt about how SVG 1.2 uDOM cope with textContent Given the following code:
root=doc.documentElement; text=doc.createElemetnNS(svgns,"text"); text.textContent="1"; tspan=doc.createElementNS(svgns,"tspan"); tspan.textContent="2"; text.appendChild(tspan); root.appendChild(text); What should an SVG Player put on the screen? Thanks for any suggestion, Luca Piccarreta Erik Dahlström wrote: > On Wed, 16 Jan 2008 13:45:07 +0100, ons.renderman > <[EMAIL PROTECTED]> wrote: > > >> Erik. >> >> Version is 9.23 >> Build is 8808 >> >> Regards. >> >> Phil. >> > > Just to make sure, this is what I'm testing (I wrapped your example in an > svg tag, and open the file locally): > > <svg xmlns="http://www.w3.org/2000/svg" > xmlns:xlink="http://www.w3.org/1999/xlink"> > <a xlink:title="" cursor="pointer"> > <rect onmouseover="scaleLegend(evt,1.1)" > onmouseout="scaleLegend(evt,1)" stroke="black" fill="rgb(196,142,221)" > onclick="changeColour('Purple',true)" height="17" > width="17" transform="translate(53 181) scale(1)" id="purpleRect" > stroke-width="1.6"/> > <rect onmouseover="scaleLegend(evt,1.1)" > onmouseout="scaleLegend(evt,1)" stroke="none" fill="#25FF28" > onclick="changeColour('Green',true)" height="17" width="17" > transform="translate(79,181)" id="greenRect" stroke-width="1.6"/> > <rect onmouseover="scaleLegend(evt,1.1)" > onmouseout="scaleLegend(evt,1)" stroke="none" fill="#FF1B1B" > onclick="changeColour('Red',true)" height="17" width="17" > transform="translate(105,181)" id="redRect" stroke-width="1.6"/> > <rect onmouseover="scaleLegend(evt,1.1)" > onmouseout="scaleLegend(evt,1)" stroke="none" fill="#ABABAB" > onclick="changeColour('Grey',true)" height="17" width="17" > transform="translate(131,181)" id="greyRect" stroke-width="1.6"/> > </a> > </svg> > > My error console only shows warnings about the scaleLegend function not > existing in this document, tested in Windows opera 9.23 build 8808. > > Even the simplified example below didn't show any warnings at all in the > console: > > <svg xmlns="http://www.w3.org/2000/svg" > xmlns:xlink="http://www.w3.org/1999/xlink"> > <a xlink:title="" cursor="pointer"> > </a> > </svg> > > According to the spec an empty xlink:title attribute is perfectly valid, > even though I would say it's sad that the workaround with an <a> element > is needed since you don't actually need or want a link it seems. > /Erik > > ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

