Skip to content

Commit e053000

Browse files
Ahmad-S792Ahmad Saleem
authored andcommitted
Remove HTMLPreElement.wrap IDL attribute
Remove HTMLPreElement.wrap IDL attribute https://bugs.webkit.org/show_bug.cgi?id=249965 Reviewed by Alexey Shvayka. This patch is to align WebKit with Gecko / Firefox, Blink / Chromium and web-specification. Merge - https://src.chromium.org/viewvc/blink?view=rev&revision=179131 This patch remove "wrap" from IDL file of the "Pre" element and align WebKit with web standards. It was removed from Blink in 2014. * Source/WebCore/html/HTMLPreElement.idl: Remove 'wrap' * LayoutTests/fast/dom/boolean-attribute-reflection.html: Rebaselined * LayoutTests/fast/dom/boolean-attribute-reflection-expected.txt: Rebaselined Canonical link: https://commits.webkit.org/258445@main
1 parent 941d50e commit e053000

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

LayoutTests/fast/dom/boolean-attribute-reflection-expected.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ PASS e = make('option'); e.removeAttribute('selected'); e.defaultSelected is fal
7979
PASS e = make('option'); e.setAttribute('selected', ''); e.defaultSelected is true
8080
PASS e = make('option'); e.setAttribute('selected', 'x'); e.defaultSelected = false; e.getAttribute('selected') is null
8181
PASS e = make('option'); e.setAttribute('selected', 'x'); e.defaultSelected = true; e.getAttribute('selected') is ''
82-
PASS e = make('pre'); e.removeAttribute('wrap'); e.wrap is false
83-
PASS e = make('pre'); e.setAttribute('wrap', ''); e.wrap is true
84-
PASS e = make('pre'); e.setAttribute('wrap', 'x'); e.wrap = false; e.getAttribute('wrap') is null
85-
PASS e = make('pre'); e.setAttribute('wrap', 'x'); e.wrap = true; e.getAttribute('wrap') is ''
8682
PASS e = make('script'); e.removeAttribute('defer'); e.defer is false
8783
PASS e = make('script'); e.setAttribute('defer', ''); e.defer is true
8884
PASS e = make('script'); e.setAttribute('defer', 'x'); e.defer = false; e.getAttribute('defer') is null

LayoutTests/fast/dom/boolean-attribute-reflection.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
22
<html>
33
<head>
4-
<script src="../../resources/js-test-pre.js"></script>
4+
<script src="../../resources/js-test.js"></script>
55
</head>
66
<body>
77
<script>
@@ -27,7 +27,6 @@
2727
[ "object", "declare" ],
2828
[ "ol", "compact" ],
2929
[ "option", "defaultSelected", "selected" ],
30-
[ "pre", "wrap" ],
3130
[ "script", "defer" ],
3231
[ "select", "multiple" ],
3332
[ "td", "noWrap" ],
@@ -66,6 +65,5 @@
6665
"''");
6766
}
6867
</script>
69-
<script src="../../resources/js-test-post.js"></script>
7068
</body>
7169
</html>

Source/WebCore/html/HTMLPreElement.idl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2006, 2010 Apple Inc. All right reserved.
2+
* Copyright (C) 2006-2023 Apple Inc. All right reserved.
33
* Copyright (C) 2006 Samuel Weinig <[email protected]>
44
*
55
* This library is free software; you can redistribute it and/or
@@ -18,14 +18,14 @@
1818
* Boston, MA 02110-1301, USA.
1919
*/
2020

21+
// https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
22+
// https://html.spec.whatwg.org/#the-pre-element
23+
2124
[
2225
Exposed=Window
2326
] interface HTMLPreElement : HTMLElement {
2427
// FIXME: DOM spec says that width should be of type DOMString
2528
// see http://bugs.webkit.org/show_bug.cgi?id=8992
2629
[CEReactions=NotNeeded, Reflect] attribute long width;
27-
28-
// Extensions
29-
[CEReactions=NotNeeded, Reflect] attribute boolean wrap;
3030
};
3131

0 commit comments

Comments
 (0)