Skip to content

Commit d4a50b6

Browse files
Josh-Cenadipikabhgithub-actions[bot]
authored
Move "Whitespace" article from DOM to CSS (#40523)
* Move "Whitespace" article from DOM to CSS * Update files/en-us/web/css/css_text/whitespace/index.md * Update index.md * Apply suggestions from code review Co-authored-by: Dipika Bhattacharya <[email protected]> * Reviews * Update index.md * Apply suggestions from code review Co-authored-by: Dipika Bhattacharya <[email protected]> * Update files/en-us/web/css/css_text/whitespace/index.md Co-authored-by: Dipika Bhattacharya <[email protected]> * Update files/en-us/web/css/css_text/whitespace/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Reviews * Update index.md * Reviews * Update index.md * Apply suggestions from code review Co-authored-by: Dipika Bhattacharya <[email protected]> * Update files/en-us/web/css/css_text/whitespace/index.md --------- Co-authored-by: Dipika Bhattacharya <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 4a39ded commit d4a50b6

File tree

17 files changed

+617
-553
lines changed

17 files changed

+617
-553
lines changed

files/en-us/_redirects.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8528,7 +8528,8 @@
85288528
/en-US/docs/Web/API/Document_Object_Model/Using_the_Document_Object_Model/Example /en-US/docs/Web/API/Document_Object_Model/Using_the_Document_Object_Model
85298529
/en-US/docs/Web/API/Document_Object_Model/Using_the_W3C_DOM_Level_1_Core /en-US/docs/Web/API/Document_Object_Model/Using_the_Document_Object_Model
85308530
/en-US/docs/Web/API/Document_Object_Model/Using_the_W3C_DOM_Level_1_Core/Example /en-US/docs/Web/API/Document_Object_Model/Using_the_Document_Object_Model
8531-
/en-US/docs/Web/API/Document_Object_Model/Whitespace_in_the_DOM /en-US/docs/Web/API/Document_Object_Model/Whitespace
8531+
/en-US/docs/Web/API/Document_Object_Model/Whitespace /en-US/docs/Web/CSS/CSS_text/Whitespace
8532+
/en-US/docs/Web/API/Document_Object_Model/Whitespace_in_the_DOM /en-US/docs/Web/CSS/CSS_text/Whitespace
85328533
/en-US/docs/Web/API/DoubleRange /en-US/docs/Web/API/MediaTrackConstraints
85338534
/en-US/docs/Web/API/DynamicsCompressorNode.attack /en-US/docs/Web/API/DynamicsCompressorNode/attack
85348535
/en-US/docs/Web/API/DynamicsCompressorNode.knee /en-US/docs/Web/API/DynamicsCompressorNode/knee
@@ -12811,7 +12812,7 @@
1281112812
/en-US/docs/Web/Guide/API/DOM/The_structured_clone_algorithm /en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm
1281212813
/en-US/docs/Web/Guide/API/DOM/Using_dynamic_styling_information /en-US/docs/Web/API/CSS_Object_Model/Using_dynamic_styling_information
1281312814
/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mode /en-US/docs/Web/API/Fullscreen_API
12814-
/en-US/docs/Web/Guide/API/DOM/Whitespace_in_the_DOM /en-US/docs/Web/API/Document_Object_Model/Whitespace
12815+
/en-US/docs/Web/Guide/API/DOM/Whitespace_in_the_DOM /en-US/docs/Web/CSS/CSS_text/Whitespace
1281512816
/en-US/docs/Web/Guide/API/File System /en-US/docs/Web/API/File_System_API
1281612817
/en-US/docs/Web/Guide/API/File System/Introduction /en-US/docs/Web/API/File_System_API
1281712818
/en-US/docs/Web/Guide/API/Gamepad /en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API
@@ -12892,7 +12893,7 @@
1289212893
/en-US/docs/Web/Guide/DOM/The_structured_clone_algorithm /en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm
1289312894
/en-US/docs/Web/Guide/DOM/Using_dynamic_styling_information /en-US/docs/Web/API/CSS_Object_Model/Using_dynamic_styling_information
1289412895
/en-US/docs/Web/Guide/DOM/Using_full_screen_mode /en-US/docs/Web/API/Fullscreen_API
12895-
/en-US/docs/Web/Guide/DOM/Whitespace_in_the_DOM /en-US/docs/Web/API/Document_Object_Model/Whitespace
12896+
/en-US/docs/Web/Guide/DOM/Whitespace_in_the_DOM /en-US/docs/Web/CSS/CSS_text/Whitespace
1289612897
/en-US/docs/Web/Guide/Events /en-US/docs/Web/API/Document_Object_Model/Events
1289712898
/en-US/docs/Web/Guide/Events/Creating_and_triggering_events /en-US/docs/Web/API/Document_Object_Model/Events
1289812899
/en-US/docs/Web/Guide/Events/Event_dispatching_example /en-US/docs/Web/API/Document_Object_Model/Events
@@ -15523,7 +15524,7 @@
1552315524
/en-US/docs/Web_development/Writing_forward-compatible_websites /en-US/docs/Learn_web_development/Core/Scripting/Debugging_JavaScript
1552415525
/en-US/docs/What's_New_in_Deer_Park_Alpha /en-US/docs/Mozilla/Firefox/Releases/1.5/What_s_new_in_1.5_alpha
1552515526
/en-US/docs/What_does_tracking_mean /en-US/docs/Web/HTTP/Reference/Headers/DNT
15526-
/en-US/docs/Whitespace_in_the_DOM /en-US/docs/Web/API/Document_Object_Model/Whitespace
15527+
/en-US/docs/Whitespace_in_the_DOM /en-US/docs/Web/CSS/CSS_text/Whitespace
1552715528
/en-US/docs/WindowEventHandlers.onbeforeprint /en-US/docs/Web/API/Window/beforeprint_event
1552815529
/en-US/docs/WindowEventHandlers.onbeforeunload /en-US/docs/Web/API/Window/beforeunload_event
1552915530
/en-US/docs/WindowEventHandlers.onhashchange /en-US/docs/Web/API/Window/hashchange_event

files/en-us/_wikihistory.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29758,32 +29758,6 @@
2975829758
"Gor1"
2975929759
]
2976029760
},
29761-
"Web/API/Document_Object_Model/Whitespace": {
29762-
"modified": "2020-03-27T15:25:12.263Z",
29763-
"contributors": [
29764-
"mfuji09",
29765-
"dev-nicolaos",
29766-
"chrisdavidmills",
29767-
"violasong",
29768-
"mfluehr",
29769-
"teoli",
29770-
"michaelnetbiz",
29771-
"ishita",
29772-
"Brettz9",
29773-
"Jeremie",
29774-
"Sheppy",
29775-
"jswisher",
29776-
"hectorsan68",
29777-
"ethertank",
29778-
"VK",
29779-
"Mgjbot",
29780-
"BobChao",
29781-
"Ptak82",
29782-
"NickolayBot",
29783-
"Dria",
29784-
"JesseW"
29785-
]
29786-
},
2978729761
"Web/API/DragEvent": {
2978829762
"modified": "2020-10-15T21:29:10.598Z",
2978929763
"contributors": [
@@ -77489,6 +77463,32 @@
7748977463
"teoli"
7749077464
]
7749177465
},
77466+
"Web/CSS/CSS_text/Whitespace": {
77467+
"modified": "2020-03-27T15:25:12.263Z",
77468+
"contributors": [
77469+
"mfuji09",
77470+
"dev-nicolaos",
77471+
"chrisdavidmills",
77472+
"violasong",
77473+
"mfluehr",
77474+
"teoli",
77475+
"michaelnetbiz",
77476+
"ishita",
77477+
"Brettz9",
77478+
"Jeremie",
77479+
"Sheppy",
77480+
"jswisher",
77481+
"hectorsan68",
77482+
"ethertank",
77483+
"VK",
77484+
"Mgjbot",
77485+
"BobChao",
77486+
"Ptak82",
77487+
"NickolayBot",
77488+
"Dria",
77489+
"JesseW"
77490+
]
77491+
},
7749277492
"Web/CSS/CSS_text_decoration": {
7749377493
"modified": "2020-07-07T12:27:11.406Z",
7749477494
"contributors": [

files/en-us/glossary/whitespace/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ The [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/ecmasc
1919

2020
## See also
2121

22-
- [Whitespace character](https://en.wikipedia.org/wiki/Whitespace_character) (Wikipedia)
23-
- [How whitespace is handled by HTML, CSS, and in the DOM](/en-US/docs/Web/API/Document_Object_Model/Whitespace)
22+
- [Whitespace character](https://en.wikipedia.org/wiki/Whitespace_character) on Wikipedia
23+
- [Handling whitespace in CSS](/en-US/docs/Web/CSS/CSS_text/Whitespace)
2424
- {{cssxref("white-space")}}
25-
- Specifications
25+
- Specifications:
2626
- [ASCII whitespace spec](https://infra.spec.whatwg.org/#ascii-whitespace)
2727
- [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/ecmascript-language-lexical-grammar.html#sec-white-space)
2828
- Related glossary terms:

files/en-us/web/api/document_object_model/using_the_document_object_model/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ It has a DOM tree that looks like this:
2828

2929
![The DOM as a tree-like representation of a document that has a root and node elements containing content](using_the_w3c_dom_level_1_core-doctree.jpg)
3030

31-
Although the above tree is similar to the above document's DOM tree, it's not identical, as [the actual DOM tree preserves whitespace](/en-US/docs/Web/API/Document_Object_Model/Whitespace).
31+
Although the above tree is similar to the above document's DOM tree, they're not identical, as the actual DOM tree preserves [whitespace](/en-US/docs/Web/CSS/CSS_text/Whitespace).
3232

3333
When a web browser parses an HTML document, it builds a DOM tree and then uses it to display the document.
3434

0 commit comments

Comments
 (0)