Closed AaronAcerboni closed 11 years ago
This is correct. The 'div' you create is an svg element. Currently, Pablo only creates elements with the svg namespace (even though 'div' isn't a standard svg element.
On Wednesday, March 20, 2013, AaronAcerboni wrote:
parentsSvg() should return the ancestors of an element which are only svg elements. The bug is that it returns all types.
var collection = Pablo('div', {}), deepChild; collection.circle().ellipse().append('a');deepChild = collection.find('a'); deepChild.parentsSvg();// ^ Incorrect is because its [ellipse, circle, div] when it should be [ellipse, circle]
— Reply to this email directly or view it on GitHubhttps://github.com/dharmafly/pablo/issues/53 .
Premasagar Rose, Dharmafly http://dharmafly.com dharmafly.com / 07941 192398 premasagar.com twitter.com/premasagar L4RP.com asyncjs.com
I'll create a div using document.createElement
Implemented in 8b89b58
parentsSvg()
should return the ancestors of an element which are only svg elements. The bug is that it returns all types.