Bug Tracker

Modify

Ticket #5874 (closed bug: wontfix)

Opened 3 years ago

Last modified 3 years ago

$('<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:
Blocking: Blocked by:

Description

throw an error! instead of $('body').append($('<v:curve/>').attr({'from' : '50px,50px', 'to' : '100px,100px'})); it run well.

Change History

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

comment:2 Changed 3 years ago by dmethvin

  • Status changed from closed to reopened
  • Resolution invalid deleted
  • Component changed from unfilled to core

Acutally, let me correct that, the problem here is that ('<v:curve/>') tries to use the shorthand document.createElement approach 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.

comment:3 Changed 3 years ago by snover

  • Status changed from reopened to closed
  • Resolution set to wontfix

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.

comment:4 Changed 3 years ago by anonymous

Tools are known as a tool because it can help us finish the task.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.