Skip to main content

Bug Tracker

Side navigation

#12667 closed bug (notabug)

Opened October 07, 2012 04:20AM UTC

Closed October 07, 2012 02:05PM UTC

html() crashes on SVG elements

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:

For example


results in

Uncaught TypeError: Cannot call method 'replace' of undefined

at line 5935

5935 elem.innerHTML.replace( rinlinejQuery, "" ) :
Attachments (0)
Change History (1)

Changed October 07, 2012 02:05PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

SVG elements don't contain HTML, right? So asking for it is, well, asking for it. I don't think we should just return an empty string, since that would just mask the problem.