Expand description
Node.prototype・Element.prototype に置く、組込みの DOM メソッドへの転送。
【2026-10-20】DOM 要素のメソッドは実体(ハンドル)から動的に解決しており、原型には
無かった。カスタム要素のクラスが super.removeAttribute(…)(ES5 版では
M.prototype.removeAttribute.call(this, …))で組込みを呼ぶ形や、ShadyDOM が
Element.prototype の記述子を写し取る形が成り立たなかった(YouTube の Polymer)。
ここに置く関数は、this の要素の組込みメソッドを引いて呼ぶだけ。
Macros§
Constants§
- ACCESSORS 🔒
- (Node.prototype に置くか, 名前, getter, setter, 書けるか) の一覧。
- DOC_
FORWARDS 🔒 Document.prototypeに置く (名前, 関数) の一覧。- FORWARDS 🔒
- (名前, 関数) の一覧。
- NODE_
METHODS 🔒 - Node 系のメソッド名(
Node.prototypeに置く。残りはElement.prototype)。
Functions§
- builtin_
member 🔒 thisの組込みメンバname(DOM 要素、または document 等のホストオブジェクト)。- d_
adopt_ 🔒node - d_
create_ 🔒comment - d_
create_ 🔒document_ fragment - d_
create_ 🔒element - d_
create_ 🔒element_ ns - d_
create_ 🔒event - d_
create_ 🔒range - d_
create_ 🔒text_ node - d_
create_ 🔒tree_ walker - d_
element_ 🔒from_ point - d_
get_ 🔒element_ by_ id - d_
import_ 🔒node - f_after 🔒
- f_
append 🔒 - f_
append_ 🔒child - f_
attach_ 🔒shadow - f_
before 🔒 - f_blur 🔒
- f_click 🔒
- f_
clone_ 🔒node - f_
closest 🔒 - f_
compare_ 🔒document_ position - f_
contains 🔒 - f_focus 🔒
- f_
get_ 🔒attribute - f_
get_ 🔒attribute_ names - f_
get_ 🔒bounding_ client_ rect - f_
get_ 🔒client_ rects - f_
get_ 🔒elements_ by_ class_ name - f_
get_ 🔒elements_ by_ tag_ name - f_
get_ 🔒root_ node - f_
has_ 🔒attribute - f_
has_ 🔒attributes - f_
has_ 🔒child_ nodes - f_
insert_ 🔒adjacent_ element - f_
insert_ 🔒adjacent_ html - f_
insert_ 🔒adjacent_ text - f_
insert_ 🔒before - f_
is_ 🔒equal_ node - f_
matches 🔒 - f_
normalize 🔒 - f_
prepend 🔒 - f_
query_ 🔒selector - f_
query_ 🔒selector_ all - f_
remove 🔒 - f_
remove_ 🔒attribute - f_
remove_ 🔒child - f_
replace_ 🔒child - f_
replace_ 🔒children - f_
replace_ 🔒with - f_
scroll_ 🔒into_ view - f_
set_ 🔒attribute - f_
toggle_ 🔒attribute - forward 🔒
this(DOM 要素・ホストオブジェクト)の組込みメソッドnameを呼ぶ。- forward_
get 🔒 this(DOM 要素)の組込みのプロパティnameを読む。- forward_
set 🔒 this(DOM 要素)の組込みのプロパティnameに書く。- g_
assigned_ 🔒slot - g_
child_ 🔒element_ count - g_
child_ 🔒nodes - g_
children 🔒 - g_
class_ 🔒name - g_
first_ 🔒child - g_
first_ 🔒element_ child - g_id 🔒
- g_
inner_ 🔒html - g_
is_ 🔒connected - g_
last_ 🔒child - g_
last_ 🔒element_ child - g_
local_ 🔒name - g_
next_ 🔒element_ sibling - g_
next_ 🔒sibling - g_
node_ 🔒name - g_
node_ 🔒type - g_
outer_ 🔒html - g_
owner_ 🔒document - g_
parent_ 🔒element - g_
parent_ 🔒node - g_
previous_ 🔒element_ sibling - g_
previous_ 🔒sibling - g_
shadow_ 🔒root - g_slot 🔒
- g_
tag_ 🔒name - g_
text_ 🔒content - install 🔒
Node.prototypeとElement.prototypeに転送用の関数を置く。- install_
document 🔒 Document.prototypeに document の組込みメソッドへの転送を置く(ShadyDOM が写す)。- install_
fragment 🔒 DocumentFragment.prototypeに置く要素検索・追加の転送(YouTube はDocumentFragment.prototype.querySelectorAll.call(frag, "*")を使う)。- named_
node_ 🔒map_ get attributes.getNamedItem(name)(属性の配列に名前で付けたものを引く。無ければ null)。- named_
node_ 🔒map_ item attributes.item(i)(範囲外は null)。- s_
assigned_ 🔒slot - s_
child_ 🔒element_ count - s_
child_ 🔒nodes - s_
children 🔒 - s_
class_ 🔒name - s_
first_ 🔒child - s_
first_ 🔒element_ child - s_id 🔒
- s_
inner_ 🔒html - s_
is_ 🔒connected - s_
last_ 🔒child - s_
last_ 🔒element_ child - s_
local_ 🔒name - s_
next_ 🔒element_ sibling - s_
next_ 🔒sibling - s_
node_ 🔒name - s_
node_ 🔒type - s_
outer_ 🔒html - s_
owner_ 🔒document - s_
parent_ 🔒element - s_
parent_ 🔒node - s_
previous_ 🔒element_ sibling - s_
previous_ 🔒sibling - s_
shadow_ 🔒root - s_slot 🔒
- s_
tag_ 🔒name - s_
text_ 🔒content