$NetBSD: patch-src_3rdparty_chromium_third__party_blink_renderer_build_scripts_templates_element__type__helpers.cc.tmpl,v 1.1 2023/06/08 20:38:06 markd Exp $ build with python3 --- src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/element_type_helpers.cc.tmpl.orig 2022-03-30 09:48:18.000000000 +0000 +++ src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/element_type_helpers.cc.tmpl @@ -22,7 +22,7 @@ HTMLTypeMap CreateHTMLTypeMap() { const char* name; HTMLElementType type; } kTags[] = { - {% for tag in tags|sort %} + {% for tag in tags|sort(attribute='name') %} { "{{tag.name}}", HTMLElementType::k{{tag.js_interface}} }, {% endfor %} }; @@ -42,7 +42,7 @@ HTMLElementType htmlElementTypeForTag(co if (it == html_type_map.end()) return HTMLElementType::kHTMLUnknownElement; - {% for tag in tags|sort %} + {% for tag in tags|sort(attribute='name') %} {% if tag.runtimeEnabled %} if (tagName == "{{tag.name}}") { if (!RuntimeEnabledFeatures::{{tag.runtimeEnabled}}Enabled(document->GetExecutionContext())) {