From 9a110dee28ae2ef12ee014b98fda6bae6ee48edb Mon Sep 17 00:00:00 2001 From: YujiSoftware Date: Wed, 2 Mar 2022 20:22:51 +0900 Subject: Migrate to Compat macro (zh-cn) --- files/zh-cn/web/api/text/assignedslot/index.html | 54 +--------- files/zh-cn/web/api/text/index.html | 119 +---------------------- files/zh-cn/web/api/text/text/index.html | 48 +-------- files/zh-cn/web/api/text/wholetext/index.html | 52 +--------- 4 files changed, 5 insertions(+), 268 deletions(-) (limited to 'files/zh-cn/web/api/text') diff --git a/files/zh-cn/web/api/text/assignedslot/index.html b/files/zh-cn/web/api/text/assignedslot/index.html index 860697d7bf..aed1033826 100644 --- a/files/zh-cn/web/api/text/assignedslot/index.html +++ b/files/zh-cn/web/api/text/assignedslot/index.html @@ -34,56 +34,4 @@ translation_of: Web/API/Text/assignedSlot

Browser Compatibility

-
{{CompatibilityTable}}
- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(53.0)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatChrome(53.0)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatChrome(53.0)}}
-
+{{Compat("api.Text.assignedSlot")}} diff --git a/files/zh-cn/web/api/text/index.html b/files/zh-cn/web/api/text/index.html index 53f9e6ad5a..b45551c76d 100644 --- a/files/zh-cn/web/api/text/index.html +++ b/files/zh-cn/web/api/text/index.html @@ -72,123 +72,8 @@ translation_of: Web/API/Text

浏览器兼容性

-

{{CompatibilityTable}}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support1.0 [3]{{CompatGeckoDesktop("1.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}} [3]{{CompatVersionUnknown}} [4]
wholeText1.0{{CompatGeckoDesktop("1.9.1")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
isElementContentWhitespace{{CompatNo}}{{CompatVersionUnknown}}
- Removed in {{CompatGeckoDesktop("10")}}
{{CompatNo}}{{CompatNo}}{{CompatNo}}
replaceWholeText{{CompatVersionUnknown}} [1] [2]{{CompatGeckoDesktop("1.9.1")}}
- Removed in {{CompatGeckoDesktop("10")}}
{{CompatVersionUnknown}}{{CompatVersionUnknown}} [1] [2]{{CompatVersionUnknown}} [4]
Text() constructor28.0{{CompatGeckoDesktop("24.0")}}{{CompatNo}}15.0{{CompatNo}}
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}} [3]{{CompatGeckoMobile("1.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}} [3]{{CompatVersionUnknown}} [4]
wholeText{{CompatVersionUnknown}}{{CompatGeckoMobile("1.9.1")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
isElementContentWhitespace{{CompatNo}}{{CompatVersionUnknown}}
- Removed in {{CompatGeckoMobile("10")}}
{{CompatNo}}{{CompatNo}}{{CompatNo}}
replaceWholeText{{CompatVersionUnknown}} [1] [2]{{CompatGeckoMobile("1.9.1")}}
- Removed in {{CompatGeckoMobile("10")}}
{{CompatVersionUnknown}}{{CompatVersionUnknown}} [1] [2]{{CompatVersionUnknown}} [4]
Text() constructor{{CompatVersionUnknown}}{{CompatGeckoMobile("24.0")}}{{CompatNo}}15.0{{CompatNo}}
-
-

[1] Chromium is currently considering dropping its support.

-

[2] Before Chrome 30 and Opera 17, the argument wasn't mandatory, like required by the specification.

-

[3] Before Chrome 30 and Opera 17, splitText() argument was not mandatory, as required by the specification and implemented by IE and Gecko-based browsers.

-

[4] The argument is not mandatory, though required by the spec.

+{{Compat("api.Text")}} +

相关链接