Opened 10 years ago
Closed 10 years ago
#12667 closed bug (notabug)
html() crashes on SVG elements
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
For example
$("#svg_element").html();
results in
Uncaught TypeError: Cannot call method 'replace' of undefined
at line 5935
5935 elem.innerHTML.replace( rinlinejQuery, "" ) :
Note: See
TracTickets for help on using
tickets.
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.