feat: 补齐 String Annex B HTML 包装方法族

This commit is contained in:
2026-09-24 20:10:11 +00:00
parent 4787f2180f
commit 963c91ba75
4 changed files with 180 additions and 0 deletions
+13
View File
@@ -281,6 +281,19 @@ impl BuiltinWorld {
("lastIndexOf", methods.last_index_of, 1),
("isWellFormed", methods.is_well_formed, 0),
("toWellFormed", methods.to_well_formed, 0),
("anchor", methods.anchor, 1),
("big", methods.big, 0),
("blink", methods.blink, 0),
("bold", methods.bold, 0),
("fixed", methods.fixed, 0),
("fontcolor", methods.fontcolor, 1),
("fontsize", methods.fontsize, 1),
("italics", methods.italics, 0),
("link", methods.link, 1),
("small", methods.small, 0),
("strike", methods.strike, 0),
("sub", methods.sub, 0),
("sup", methods.sup, 0),
);
}
@@ -126,6 +126,19 @@ pub struct StringMethods {
pub to_locale_lower_case: *const (),
pub to_locale_upper_case: *const (),
pub locale_compare: *const (),
pub anchor: *const (),
pub big: *const (),
pub blink: *const (),
pub bold: *const (),
pub fixed: *const (),
pub fontcolor: *const (),
pub fontsize: *const (),
pub italics: *const (),
pub link: *const (),
pub small: *const (),
pub strike: *const (),
pub sub: *const (),
pub sup: *const (),
}
/// RegExp 原型方法的 native 函数指针集合。