Side navigation
#11324 closed bug (wontfix)
Opened February 10, 2012 08:52PM UTC
Closed February 11, 2012 02:46AM UTC
document fragments leak script tags into the DOM
| Reported by: | gibson042 | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
jQuery.clean only scans for embedded script tags under element nodes, skipping documents and document fragments. As a result, script tags are erroneously added to the result fragment and ultimately to the DOM.
Attachments (0)
Change History (5)
Changed February 10, 2012 08:57PM UTC by comment:1
| _comment0: | This is certainly contrived. → 1328907528099417 |
|---|
Changed February 10, 2012 09:35PM UTC by comment:2
I found it while trying to improve manipulation.js. If this were intentional, it would have hindered the effort. Since it seems to be don't-care, I offer this: https://github.com/jquery/jquery/pull/680.
Changed February 10, 2012 09:51PM UTC by comment:3
Yes, please see my comments on the PR and on the other ticket.
Changed February 11, 2012 12:40AM UTC by comment:4
Upon re-reading jQuery documentation, document fragments are ''not'' supported inputs, meaning this ticket can be closed and the behavior in that case truly a "don't care". Again, my apologies.
Changed February 11, 2012 02:46AM UTC by comment:5
| resolution: | → wontfix |
|---|---|
| status: | new → closed |
Actively looking for "new" bugs by creating contrived scenarios, instead of addressing real use cases blockers is counter productive at this stage in jQuery's growth.