aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/element/getattribute
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2021-07-27 12:04:27 -0400
committerGitHub <noreply@github.com>2021-07-28 01:04:27 +0900
commit2fc1eb1780a60adb6a5730112385ec735cd22d69 (patch)
treecc230c56a692c1a7cd63f7d351f50a902f8f9bd9 /files/ko/web/api/element/getattribute
parentdcc2714189d050e2b8b7911b3778bb5229752afe (diff)
downloadtranslated-content-2fc1eb1780a60adb6a5730112385ec735cd22d69.tar.gz
translated-content-2fc1eb1780a60adb6a5730112385ec735cd22d69.tar.bz2
translated-content-2fc1eb1780a60adb6a5730112385ec735cd22d69.zip
remove link 'title' attributes that's just the 'href' (ko, part 2) (#1740)
Diffstat (limited to 'files/ko/web/api/element/getattribute')
-rw-r--r--files/ko/web/api/element/getattribute/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ko/web/api/element/getattribute/index.html b/files/ko/web/api/element/getattribute/index.html
index c8f3947310..b177406bff 100644
--- a/files/ko/web/api/element/getattribute/index.html
+++ b/files/ko/web/api/element/getattribute/index.html
@@ -35,7 +35,7 @@ alert(align); // id가 "div1"인 요소(element)의 align 값을 보여줍니다
<p>When called on an HTML element in a DOM flagged as an HTML document, <code>getAttribute()</code> lower-cases its argument before proceeding.</p>
-<p>Essentially all web browsers (Firefox, Internet Explorer, recent versions of Opera, Safari, Konqueror, and iCab, as a non-exhaustive list) return <code>null</code> when the specified attribute does not exist on the specified element; this is what <a href="http://dom.spec.whatwg.org/#dom-element-getattribute" title="http://dom.spec.whatwg.org/#dom-element-getattribute">the current DOM specification draft</a> specifies. The old DOM 3 Core specification, on the other hand, says that the correct return value in this case is actually the <em>empty string</em>, and some DOM implementations implement this behavior. The implementation of <code>getAttribute()</code> in XUL (Gecko) actually follows the DOM 3 Core specification and returns an empty string. Consequently, you should use {{domxref("element.hasAttribute()")}} to check for an attribute's existence prior to calling <code>getAttribute()</code> if it is possible that the requested attribute does not exist on the specified element.</p>
+<p>Essentially all web browsers (Firefox, Internet Explorer, recent versions of Opera, Safari, Konqueror, and iCab, as a non-exhaustive list) return <code>null</code> when the specified attribute does not exist on the specified element; this is what <a href="http://dom.spec.whatwg.org/#dom-element-getattribute">the current DOM specification draft</a> specifies. The old DOM 3 Core specification, on the other hand, says that the correct return value in this case is actually the <em>empty string</em>, and some DOM implementations implement this behavior. The implementation of <code>getAttribute()</code> in XUL (Gecko) actually follows the DOM 3 Core specification and returns an empty string. Consequently, you should use {{domxref("element.hasAttribute()")}} to check for an attribute's existence prior to calling <code>getAttribute()</code> if it is possible that the requested attribute does not exist on the specified element.</p>
<h2 id="Browser_compatibility">Browser compatibility</h2>