Side navigation
#10085 closed bug (invalid)
Opened August 18, 2011 08:16AM UTC
Closed September 02, 2011 07:59AM UTC
Jquery selector stop when come to <script> tag in DOM
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | misc | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Recently i spend half day on this issue. here is scenario:
BUG CASE:
head:
function loadCkEditor(id,config) {
var $editors = $('#'+id);
if ($editors.length) {
$editors.each(function() {
var editorID = $(this).attr("id");
var instance = CKEDITOR.instances[editorID];
if (instance) { CKEDITOR.remove(instance); }
$("#"+id).ckeditor(config);
});
}
}
dom:
<form>
....
<script>loadCkEditor('textarea_id','')</script>
<textarea id="textarea_id"></textarea>
result: loadCkEditor function start and return $editors.length = 0
with $.dump i notice that selector come to <script> tag and then stop
Attachments (0)
Change History (3)
Changed August 18, 2011 09:45AM UTC by comment:1
component: | unfiled → misc |
---|---|
owner: | → anonymous |
priority: | undecided → low |
status: | new → pending |
Changed August 18, 2011 02:20PM UTC by comment:2
We definitely need a reduced test case. To get you started, we've created this boilerplate: http://jsfiddle.net/rwaldron/da3nM/ Open the link and click to "Fork" in the top menu.
Changed September 02, 2011 07:59AM UTC by comment:3
resolution: | → invalid |
---|---|
status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
I have a feeling this may be closed as invalid, but for the sake of thoroughness, could you kindly put together a reduced test case on jsFiddle.net which doesn't depend on CKEditor or the $.dump plugin?. We need to be able to investigate based on code reproducible without third party dependencies. Thanks!