> After I integrated > [JDK-8326734](https://bugs.openjdk.org/browse/JDK-8326734), there's no way to > remove text decoration from an HTML element. The most common HTML element is > `<a>` which is usually rendered _underlined_. You could add an inline style > or apply a rule with `text-decoration: none` to remove underline. > > This fix restores this functionality. > > The test contains five cases. The first case ensures the `<a>` element is > rendered with underline by default. The second and third cases verify that > underline is removed if `text-decoration: none` is added to the `style` > attribute or is applied by a style-sheet rule. > > The fourth and fifth cases verify that underline is preserved the containing > element, `<p>` in this case, has `text-decoration: underline`. > > These five cases render the same way in browsers. However, the fourth and > fifth cases render without underline in JDKs without JDK-8326734.
Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: Amend the bugid and summary in the test ------------- Changes: - all: https://git.openjdk.org/jdk/pull/20313/files - new: https://git.openjdk.org/jdk/pull/20313/files/d32e02b9..0049b4e5 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=20313&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20313&range=00-01 Stats: 4 lines in 1 file changed: 0 ins; 1 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/20313.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/20313/head:pull/20313 PR: https://git.openjdk.org/jdk/pull/20313
