[Webkit-unassigned] [Bug 257133] New: Does not update the HTML properly through Javascript
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 22 10:36:48 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=257133
Bug ID: 257133
Summary: Does not update the HTML properly through Javascript
Product: WebKit
Version: Safari 16
Hardware: All
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: maria at ionic.io
# Safari Dynamic HTML bug
## Reproduction URL
https://github.com/thetaPC/safari-dynamic-html
## Description
Safari does not update when changing the HTML through Javascript. It uses the old HTML to determine the direction of the element. This is a problem when using `:dir()` to apply different styles to RTL and LTR languages.
## Steps to reproduce
1. Set the `dir` attribute of the `html` element to `ltr` in the HTML file.
2. Create a script that changes the `dir` attribute of the `html` element to `rtl` when the page is loaded.
3. Create a CSS file that applies different styles to an element based on the `dir` attribute.
4. Open the HTML file in Safari.
## Expected behavior
The element should be styled according to the `dir` attribute of the `html` element regardless of the initial value.
## Actual behavior
The element is styled according to the initial value of the `dir` attribute of the `html` element.
## Other information
This works as expected in Chrome and Firefox. The bug is present in Safari 16.4+. I have not tested older versions.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230522/e07296fd/attachment.htm>
More information about the webkit-unassigned
mailing list