You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(html): the base address comes from insertion order, not tree order #287
The raw-text scan that picks the page's base address (crates/crawlberg/src/html/start_tags.rs, after #232) takes the first <base href> in the order the tree builder places elements, not the first in tree order, and a <base> inside content that <frameset> removes still counts. For <table><tr><td><base href="/1"></td><base href="/2"></tr></table> the scan picks /1, and a browser picks /2. This is older than #232 and rare; the old scanner mismatched about 100 times as often.
Fix
Pick the base from the finished tree (the first <base> element with an href in tree order that is still in the document), not from the order elements were inserted.
Activity
fix(html): take the page base from the first <base> in tree order
fix(html): take the page base from the first <base> in tree order
fix(html): read raw text, link tags and the base from one html5ever p…