Closed Bug 242913 Opened 21 years ago Closed 21 years ago

page isn't fully shown when using javascript redirection with anchor

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 233963

People

(Reporter: gast00n, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316 Using javascript to relocate the page to an anchor in a div in the page : - after the js relocation, the html code after the script doens't look to be considered - the others js scripts if the pages aren't launched (in my example, a page auto-refresh script) Reproducible: Always Steps to Reproduce: 1. create a div on a html page, with overflow auto or scroll, with enough content so scrollbars appears. 2. put an anchor at the end of the div (call 'end') 3. insert the js script "document.location.href="#end";" 4. enter some content after the script 5. put some other js script to be launch at page load Actual Results: The content after the relocation script is ignored by browser The other script isn't launched Expected Results: The content of the page should be fully shown The others scripts should be launched You can workaround the first problem by putting the reloaction script th the end of the page, the whole page is then shown. But the second problem stays...
Setting .location stops the pageload. Maybe we shouldn't be doing that at least for href sets? Not a JS engine issue -- location is a DOM object, not a core JS one.
Assignee: general → general
Component: JavaScript Engine → DOM: Level 0
QA Contact: pschwartau → ian
*** This bug has been marked as a duplicate of 233963 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.