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
Modifying HTMLImageElement width and height properties triggers load event #46882
@jdm Unless I'm missing something, I don't think step 3 is the problem. As far as I can understand, maybe omit events is going to be false here, making any checks on previousURL moot. I'm currently working on figuring out what the cause of the discrepancy is.
@evlasics Step 3 just sets previousURL, and step 7.4.7.3 says "If maybe omit events is not set" OR "previousURL is not equal to urlString", so I don't understand why "maybe omit events" matters here?
Edit: sorry, misread your comment. Let me read the spec again.
@mrobinson I don't really know to do on this issue until the whatwg spec is changed or clarified. Servo's current behavior matches the current whatwg spec in the above testcase, whereas the other browsers do not. The aforementioned issues by jdm don't seem to fully explain their behavior either. In any case, it's a bit above my pay grade, so feel free to unassign me.
Activity
jdm commentedon Jul 30, 2026
Womp womp:
servo/components/script/dom/html/htmlimageelement.rs
Lines 1209 to 1212 in 13f585c
servo-highfive commentedon Jul 30, 2026
Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in Zulip.
If you intend to work on this issue, then add
@servo-highfive: assign meto your comment, and I'll assign this to you. 😄Please read our policy on AI contributions before getting started.
jdm commentedon Jul 30, 2026
We're missing step 3 that sets the
previousURLvalue and the check in this step that compares the newest URL.evlasics commentedon Jul 31, 2026
@servo-highfive assign me
servo-highfive commentedon Jul 31, 2026
Hey @evlasics! Thanks for your interest in working on this issue. It's now assigned to you!
evlasics commentedon Aug 4, 2026
@jdm Unless I'm missing something, I don't think step 3 is the problem. As far as I can understand,
maybe omit eventsis going to be false here, making any checks onpreviousURLmoot. I'm currently working on figuring out what the cause of the discrepancy is.jdm commentedon Aug 4, 2026
@evlasics Step 3 just sets previousURL, and step 7.4.7.3 says "If maybe omit events is not set" OR "previousURL is not equal to urlString", so I don't understand why "maybe omit events" matters here?
Edit: sorry, misread your comment. Let me read the spec again.
jdm commentedon Aug 4, 2026
The
maybe omit eventsflag was added in whatwg/html#8008 and that led me to whatwg/html#8492.mrobinson commentedon Aug 20, 2026
@evlasics Are you still working on this issue?
evlasics commentedon Aug 23, 2026
@mrobinson I don't really know to do on this issue until the whatwg spec is changed or clarified. Servo's current behavior matches the current whatwg spec in the above testcase, whereas the other browsers do not. The aforementioned issues by jdm don't seem to fully explain their behavior either. In any case, it's a bit above my pay grade, so feel free to unassign me.
jdm commentedon Aug 23, 2026
I think our goal at this point should be to match the behaviour of other browsers, if we can find common behaviour.
script: Do not consider `width` a relevant `<image>` mutation (servo#…
script: Do not consider `width` a relevant `<image>` mutation (servo#…
script: Do not consider `width` a relevant `<image>` mutation (servo#…