Side navigation
#5874 closed bug (wontfix)
Opened January 20, 2010 04:05AM UTC
Closed November 22, 2010 06:31AM UTC
Last modified November 22, 2010 06:39AM UTC
$('<v:curve/>', {'from' : '50px,50px', 'to' : '100px,100px'})
Reported by: | shenkong | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.4.1 |
Component: | core | Version: | 1.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
throw an error! instead of
$('body').append($('<v:curve/>').attr({'from' : '50px,50px', 'to' : '100px,100px'}));
it run well.
Attachments (0)
Change History (4)
Changed January 20, 2010 06:23PM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
Changed January 20, 2010 06:26PM UTC by comment:2
component: | unfilled → core |
---|---|
resolution: | invalid |
status: | closed → reopened |
Acutally, let me correct that, the problem here is that
('<v:curve/>')tries to use the shorthand
document.createElementapproach to create the element which won't work there. I wonder if the regexp could be changed to push this into the innerHTML case so it would work.
Changed November 22, 2010 06:31AM UTC by comment:3
resolution: | → wontfix |
---|---|
status: | reopened → closed |
It could, but let’s not, OK? Maybe this gets resolved on its own later with some other XML-compatibility work, but we should not go out of our way to allow people to generate VML since it is hardly cross-browser.
Changed November 22, 2010 06:39AM UTC by comment:4
Tools are known as a tool because it can help us finish the task.
If the browser's native innerHTML doesn't like '<v:curve/>' then jQuery's $() won't like it either.
http://api.jquery.com/jQuery/#jQuery2