{"id":34541,"date":"2022-04-14T20:10:07","date_gmt":"2022-04-14T11:10:07","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=34541&#038;preview=true&#038;preview_id=34541"},"modified":"2023-07-11T17:35:16","modified_gmt":"2023-07-11T08:35:16","slug":"web-components","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/web-components\/","title":{"rendered":"\u30102026\u5e74\u7248\u3011Web Components\u8a73\u7d30\u5165\u9580\u30ac\u30a4\u30c9"},"content":{"rendered":"<p>\u8ab0\u306b\u3067\u3082\u3001\u3067\u304d\u308c\u3070\u3084\u308a\u305f\u304f\u306a\u3044\u3068\u601d\u3046\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u3042\u308b\u306f\u305a\u3067\u3059\u3002\u30b3\u30fc\u30c9\u304c\u7ba1\u7406\u4e0d\u80fd\u306b\u306a\u308a\u3001\u30b9\u30b3\u30fc\u30d7\u304c\u62e1\u5f35\u3057\u3001\u4fee\u6b63\u306e\u4e0a\u306b\u4fee\u6b63\u3092\u91cd\u306d\u308b\u6709\u69d8\u3002\u30b3\u30fc\u30c9\u304c\u7d61\u307e\u308a\u5408\u3044\u3001\u69cb\u9020\u304c\u5d29\u58ca\u3002\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306f\u6df7\u4e71\u3092\u62db\u304f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u8cac\u4efb\u306e\u6240\u5728\u304c\u306f\u3063\u304d\u308a\u3057\u305f\u3001\u30b7\u30f3\u30d7\u30eb\u3067\u72ec\u7acb\u3057\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002\u3053\u308c\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u30b9\u30e0\u30fc\u30ba\u306b\u9032\u307f\u307e\u3059\u3002\u30b3\u30fc\u30c9\u3092\u30ab\u30d7\u30bb\u30eb\u5316\u3059\u308b\u3068\u3001\u5b9f\u88c5\u306b\u3064\u3044\u3066\u306e\u5fc3\u914d\u3082\u8efd\u6e1b\u3067\u304d\u307e\u3059\u3002\u3042\u308b\u30a4\u30f3\u30d7\u30c3\u30c8\u304c\u4e0e\u3048\u3089\u308c\u305f\u3068\u304d\u306b\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u4f55\u3092\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3059\u308b\u304b\u304c\u5206\u304b\u3063\u3066\u3044\u308c\u3070\u3001\u305d\u306e\u76ee\u6a19\u304c\u300c\u3069\u306e\u3088\u3046\u306b\u9054\u6210\u3055\u308c\u305f\u304b\u300d\u3092\u7406\u89e3\u3059\u308b\u5fc5\u8981\u306f\u5fc5\u305a\u3057\u3082\u306a\u3044\u306e\u3067\u3059\u3002<\/p>\n<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u6982\u5ff5\u3092\u5358\u4e00\u306e<a href=\"https:\/\/kinsta.com\/blog\/best-programming-language-to-learn\/\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/a>\u8a00\u8a9e\u3067\u7406\u89e3\u3059\u308b\u306e\u306f\u3001\u96e3\u3057\u3044\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u30a6\u30a7\u30d6\u958b\u767a\u306e\u4e16\u754c\u3067\u306f\u3001\u591a\u69d8\u306a\u6280\u8853\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<a href=\"https:\/\/kinsta.com\/jp\/browser-market-share\/\">\u30d6\u30e9\u30a6\u30b6<\/a>\u306f<a href=\"https:\/\/kinsta.com\/blog\/html-vs-html5\/\">HTML<\/a>\u3001CSS\u3001JavaScript\u3092\u89e3\u6790\u3057\u3001\u30da\u30fc\u30b8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3001\u30b9\u30bf\u30a4\u30eb\u3001\u6a5f\u80fd\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u305e\u308c\u306f\u3001\u305d\u3046\u7c21\u5358\u306b\u306f\u8abf\u548c\u3057\u306a\u3044\u3082\u306e\u3067\u3001\u7406\u7531\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u95a2\u9023\u3059\u308b\u30b3\u30fc\u30c9\u304c3\u3064\u4ee5\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u5206\u5272\u3055\u308c\u5f97\u308b\u3002<\/li>\n<li>\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30bf\u30a4\u30eb\u3068JavaScript\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001\u4e88\u671f\u305b\u306c\u304b\u305f\u3061\u3067\u4e92\u3044\u306b\u5e72\u6e09\u3057\u5408\u3046\u3053\u3068\u304c\u3042\u308b\u3002<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306b\u52a0\u3048\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u3067\u4f7f\u7528\u3055\u308c\u308b\u8a00\u8a9e\u30e9\u30f3\u30bf\u30a4\u30e0\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/javascript-libraries\/\">\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/a>\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001\u305d\u306e\u4ed6\u306e\u4f9d\u5b58\u95a2\u4fc2\u304b\u3089\u767a\u751f\u3059\u308b\u554f\u984c\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>Web Components\u306b\u3064\u3044\u3066\u306e<a class=\"c-link\" href=\"https:\/\/www.youtube.com\/watch?v=hVxZ-te0kio\" target=\"_blank\" rel=\"noopener noreferrer\" data-stringify-link=\"https:\/\/www.youtube.com\/watch?v=hVxZ-te0kio\" data-sk=\"tooltip_parent\" data-remove-tab-index=\"true\">\u52d5\u753b\u3067\u306e\u89e3\u8aac<\/a>\u3082\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/h3>\n<kinsta-video src=\"https:\/\/www.youtube.com\/watch?v=hVxZ-te0kio\"><\/kinsta-video>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>Web Components\u3068\u306f\uff1f<\/h2>\n<p>Web Components\u306f\u3001\u3064\u307e\u308a\u3001\u30ab\u30d7\u30bb\u30eb\u5316\u3055\u308c\u305f\u5358\u4e00\u306e\u8cac\u4efb\u3092\u6301\u3064\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u3067\u3059\u3002\u3042\u3089\u3086\u308b\u30da\u30fc\u30b8\u3067\u518d\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>HTML\u306e<code><strong>&lt;video&gt;<\/strong><\/code>\u30bf\u30b0\u3092\u8003\u3048\u3066\u307f\u3088\u3046\u3002<u>URL<\/u>\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30b5\u30a4\u30c8\u8a2a\u554f\u8005\u306f\u518d\u751f\u3001\u4e00\u6642\u505c\u6b62\u3001\u623b\u308b\u3001\u9032\u3080\u3001\u97f3\u91cf\u8abf\u6574\u306a\u3069\u306e\u64cd\u4f5c\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30bf\u30a4\u30eb\u3068\u6a5f\u80fd\u306f\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u3055\u307e\u3056\u307e\u306a\u5c5e\u6027\u3084JavaScript\u306eAPI\u30b3\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code><strong>&lt;video&gt;<\/strong><\/code> \u8981\u7d20\u306f\u3001\u4ed6\u306e\u30bf\u30b0\u306e\u4e2d\u306b\u3044\u304f\u3064\u3067\u3082\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u5e72\u6e09\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u72ec\u81ea\u306e\u6a5f\u80fd\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u306e\u3067\u3057\u3087\u3046\u304b\u3002\u4f8b\u3048\u3070\u3001\u30da\u30fc\u30b8\u306e\u5358\u8a9e\u6570\u3092\u8868\u793a\u3059\u308b\u8981\u7d20\u306a\u3069\u3002HTML<code><strong>&lt;wordcount&gt;<\/strong><\/code>\u30bf\u30b0\u306f\uff08\u307e\u3060\uff09\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/javascript-libraries\/#reactjs\">React<\/a>\u3084<a href=\"https:\/\/kinsta.com\/blog\/vue-js\/\">Vue.js\u306a\u3069\u306e<\/a>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u3088\u308a\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3001\u30b9\u30bf\u30a4\u30eb\u3001\u6a5f\u80fd\u30921\u3064\u306eJavaScript\u30d5\u30a1\u30a4\u30eb\u3067\u5b9a\u7fa9\u3067\u304d\u308bWeb Components\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u591a\u304f\u306e\u8907\u96d1\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u70b9\u3092\u5ff5\u982d\u306b\u7f6e\u304f\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f7f\u3044\u65b9\u3092\u5b66\u3073\u3001\u9032\u5c55\u306b\u5408\u308f\u305b\u3066\u30b3\u30fc\u30c9\u3092\u66f4\u65b0\u3057\u3066\u3044\u304f\u5fc5\u8981\u304c\u3042\u308b\u3002<\/li>\n<li>\u3042\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u7528\u306b\u66f8\u304b\u308c\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u3001\u4ed6\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u4e92\u63db\u6027\u3092\u6301\u3064\u3053\u3068\u306f\u307b\u3068\u3093\u3069\u306a\u3044\u3002<\/li>\n<li>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4eba\u6c17\u306f\u4e0a\u304c\u3063\u305f\u308a\u4e0b\u304c\u3063\u305f\u308a\u3057\u3066\u3044\u308b\u3002\u958b\u767a\u30c1\u30fc\u30e0\u3084\u30e6\u30fc\u30b6\u30fc\u306e\u6c17\u307e\u3050\u308c\u3084\u512a\u5148\u9806\u4f4d\u306b\u5de6\u53f3\u3055\u308c\u308b\u50be\u5411\u306b\u3042\u308b\u3002<\/li>\n<li>Standard Web Components\u306f\u3001JavaScript\u3060\u3051\u3067\u306f\u5b9f\u73fe\u304c\u96e3\u3057\u3044\u30d6\u30e9\u30a6\u30b6\u306e\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff08Shadow DOM\u306a\u3069\uff09\u3002<\/li>\n<\/ul>\n<p>\u5e78\u3044\u306a\u3053\u3068\u306b\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u5c0e\u5165\u3055\u308c\u305f\u4eba\u6c17\u306e\u30b3\u30f3\u30bb\u30d7\u30c8\u306f\u3001\u305f\u3044\u3066\u3044Web\u306e\u6a19\u6e96\u3068\u3057\u3066\u53d6\u308a\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u6642\u9593\u306f\u304b\u304b\u308a\u307e\u3057\u305f\u304c\u3001Web Components\u306e\u767b\u5834\u306b\u3044\u305f\u308a\u307e\u3059\u3002<\/p>\n\n<h2>Web Components\u306e\u6b74\u53f2<\/h2>\n<p>\u30d9\u30f3\u30c0\u30fc\u56fa\u6709\u306e\u591a\u304f\u306e\u5931\u6557\u3092\u7d4c\u306a\u304c\u3089\u3082\u3001\u6a19\u6e96\u7684\u306aWeb Components\u306e\u30b3\u30f3\u30bb\u30d7\u30c8\u306f<a href=\"https:\/\/fronteers.nl\/congres\/2011\/sessions\/web-components-and-model-driven-views-alex-russell\">2011\u5e74\u306eFronteers Conference\u3067Alex Russell\u6c0f\u306b\u3088\u3063\u3066<\/a><u>\u767a\u8868<\/u>\u3055\u308c\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001Google\u306e<a href=\"https:\/\/github.com\/Polymer\/polymer\">Polymer\u30e9\u30a4\u30d6\u30e9\u30ea<\/a>\uff08\u73fe\u5728\u306e\u63d0\u6848\u306b\u57fa\u3065\u304f\u30dd\u30ea\u30d5\u30a3\u30eb\uff09\u304c\u305d\u306e2\u5e74\u5f8c\u306b\u7523\u58f0\u3092\u4e0a\u3052\u3066\u3044\u307e\u3059\u3002Chrome\u3068Safari\u3067\u306e\u5b9f\u88c5\u306f2016\u5e74\u306b\u306a\u3063\u3066\u304b\u3089\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u30d9\u30f3\u30c0\u30fc\u306b\u3088\u308b\u8a73\u7d30\u306a\u4ea4\u6e09\u306b\u306f\u6642\u9593\u3092\u8981\u3057\u305f\u3082\u306e\u306e\u30012018\u5e74\u306b\u306fFirefox\u30012020\u5e74\uff08Microsoft\u306b\u3088\u308bChromium\u30a8\u30f3\u30b8\u30f3\u3078\u306e\u5207\u308a\u66ff\u3048\u6642\uff09\u306b\u306fEdge\u306b\u3001Web Components\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u5f53\u7136\u306e\u3088\u3046\u306b\u3001Web Components\u3092\u7a4d\u6975\u7684\u306b\u63a1\u7528\u3059\u308b\uff08\u307e\u305f\u306f\u3067\u304d\u308b\uff09\u958b\u767a\u8005\u306f\u307b\u3068\u3093\u3069\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u3088\u3046\u3084\u304f\u5b89\u5b9a\u3057\u305fAPI\u3001\u30d6\u30e9\u30a6\u30b6\u306b\u3088\u308b\u30b5\u30dd\u30fc\u30c8\u3068\u3044\u3063\u305f\u9762\u304c\u5145\u5b9f\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u4e07\u4e8bOK\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u30d9\u30fc\u30b9\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u4ee3\u308f\u308b\u9078\u629e\u80a2\u3068\u3057\u3066\u3001\u307e\u3059\u307e\u3059\u73fe\u5b9f\u5473\u3092\u5e2f\u3073\u3066\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u304a\u6c17\u306b\u5165\u308a\u306e\u3082\u306e\u3092\u307e\u3060\u6368\u3066\u305f\u304f\u306a\u3044\u3068\u3044\u3046\u4eba\u3067\u3082\u3001Web Components\u306f\u3042\u3089\u3086\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u4e92\u63db\u6027\u304c\u3042\u308a\u3001API\u3082\u4eca\u5f8c\u4f55\u5e74\u306b\u3082\u308f\u305f\u3063\u3066\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<p>Web Components\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u516c\u958b\u3055\u308c\u3066\u304a\u308a\u3001\u8ab0\u3067\u3082\u81ea\u7531\u306b\u95b2\u89a7\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/www.webcomponents.org\/\">WebComponents.org<\/a><\/li>\n<li><a href=\"https:\/\/component.gallery\/\">The Component Gallery<\/a><\/li>\n<li><a href=\"https:\/\/genericcomponents.netlify.app\/\">generic-components<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/mdn\/web-components-examples\">web-components-examples<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/davatron5000\/awesome-standalones\">awesome-standalones<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/scottaohara\/accessible_components\">accessible_components<\/a><\/li>\n<li><a href=\"https:\/\/kickstand-ui.com\/\">Kickstand UI<\/a><\/li>\n<\/ul>\n<p>&#8230;\u3068\u306f\u3044\u3048\u3001\u81ea\u5206\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u306e\u306f\u697d\u3057\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>JavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u308f\u305a\u306b\u66f8\u304fWeb Components\u306e\u5165\u9580\u7de8\u3092\u304a\u5c4a\u3051\u3057\u307e\u3059\u3002Web Components\u3068\u306f\u4f55\u306a\u306e\u304b\u3001\u305d\u3057\u3066\u3001\u5b9f\u969b\u306e\u30a6\u30a7\u30d6\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3069\u306e\u3088\u3046\u306b\u6d3b\u7528\u3067\u304d\u308b\u306e\u304b\u3001\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<a href=\"https:\/\/kinsta.com\/blog\/html-vs-html5\/\">HTML5<\/a>\u3001CSS\u3001JavaScript\u306e\u77e5\u8b58\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>Web Components\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046<\/h2>\n<p>Web Components\u306f\u3001<code><strong>&lt;hello-world&gt;&lt;\/hello-world&gt;<\/strong><\/code>\u306e\u3088\u3046\u306a\u30ab\u30b9\u30bf\u30e0HTML\u8981\u7d20\u3067\u3059\u3002HTML\u306e\u4ed5\u69d8\u3067\u516c\u5f0f\u306b\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u8981\u7d20\u3068\u5e72\u6e09\u3057\u306a\u3044\u3088\u3046\u306b\u3001\u540d\u524d\u306b\u30c0\u30c3\u30b7\u30e5\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u8981\u7d20\u3092\u5236\u5fa1\u3059\u308b\u306b\u306f\u3001ES2015\u30af\u30e9\u30b9\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u4f55\u3067\u3082\u826f\u3044\u306e\u3067\u3059\u304c\u3001hello-world\u304c\u3088\u304f\u4f7f\u308f\u308c\u307e\u3059\u3002\u30af\u30e9\u30b9\u306f\u3001HTML\u8981\u7d20\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u30e1\u30bd\u30c3\u30c9\u3092\u8868\u3059<a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/HTMLElement\">HTMLElement\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9<\/a>\u3092\u7d99\u627f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u6ce8\uff09<\/strong><a href=\"https:\/\/kinsta.com\/jp\/blog\/most-secure-browser\/#3-firefox\">Firefox\u3067\u306f<\/a>\u3001HTMLParagraphElement\u3001HTMLImageElement\u3001HTMLButtonElement\u3068\u3044\u3063\u305f\u7279\u5b9a\u306eHTML\u8981\u7d20\u3092\u62e1\u5f35\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u4ed6\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u304a\u3089\u305a\u3001Shadow DOM \u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u4f55\u304b\u6709\u7528\u306a\u52d5\u4f5c\u3092\u884c\u3046\u305f\u3081\u306b\u306f\u3001\u3053\u306e\u30af\u30e9\u30b9\u306b\u306f<strong>connectedCallback() <\/strong>\u3068\u3044\u3046\u540d\u524d\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u308c\u306f\u8981\u7d20\u304c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8ffd\u52a0\u3055\u308c\u305f\u6642\u306b\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\"><span id=\"urn:enhancement-5a472835-f035-49c6-afdd-259c6ca88672\" class=\"textannotation\">class<\/span> <span id=\"urn:enhancement-6d776464-994d-486e-abd3-d3f9cc3a4fcd\" class=\"textannotation\">HelloWorld<\/span> extends HTMLElement {\n\n  \/\/ connect <span id=\"urn:enhancement-f212c3b3-327c-41f4-a6e5-a405b2f6a0d2\" class=\"textannotation\">component<\/span>\n  connectedCallback() {\n    this.textContent = '<span id=\"urn:enhancement-07266552-590c-411a-a714-33442978e0b6\" class=\"textannotation\">Hello World<\/span>!';\n  }\n\n}\n<\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u8981\u7d20\u306e\u30c6\u30ad\u30b9\u30c8\u306b&#8221;Hello World&#8221;\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30af\u30e9\u30b9\u3092\u7279\u5b9a\u306e\u8981\u7d20\u306b\u5bfe\u3059\u308b\u30cf\u30f3\u30c9\u30e9\u3068\u3057\u3066\u5b9a\u7fa9\u3059\u308b\u306b\u306f\u3001<a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/CustomElementRegistry\">CustomElementRegistry\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/a><\/p>\n<pre><code class=\"language-html\">customElements.define( 'hello-world', <span id=\"urn:enhancement-77612089-d914-40b1-b6b0-5ae842dd4ab2\" class=\"textannotation\">HelloWorld<\/span> );<\/code><\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u306f\u3001JavaScript \u304c\u8aad\u307f\u8fbc\u307e\u308c\u305f\u3068\u304d\u306b\u3001<code><strong>&lt;hello-world&gt;<\/strong><\/code>\u8981\u7d20\u3068<strong>HelloWorld<\/strong>\u30af\u30e9\u30b9\u3092\u95a2\u9023\u4ed8\u3051\u307e\u3059 (\u4f8b: <code><strong>&lt;script type=\"module\" src=\".\/helloworld.js\"&gt;&lt;\/script&gt; <\/strong><\/code>)\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u30ab\u30b9\u30bf\u30e0\u8981\u7d20\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" title=\"&lt;hello-world&gt; component\" src=\"https:\/\/codepen.io\/craigbuckler\/embed\/preview\/WNpaxPN?default-tabs=js%2Cresult&#038;height=300&#038;host=https%3A%2F%2Fcodepen.io&#038;slug-hash=WNpaxPN#?secret=P3I0AJeDVj\" data-secret=\"P3I0AJeDVj\" scrolling=\"no\" frameborder=\"0\" height=\"300\"><\/iframe><\/p>\n<p><a href=\"https:\/\/codepen.io\/craigbuckler\/pen\/WNpaxPN\">CodePen\u306e\u30c7\u30e2<\/a><\/p>\n<p>\u3053\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u3064\u3044\u3066\u3001\u4ed6\u306e\u8981\u7d20\u3068\u540c\u69d8\u306bCSS\u3067\u30b9\u30bf\u30a4\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-css\">hello-world {\n  font-weight: bold;\n  <span id=\"urn:enhancement-8a6d3be7-28aa-4cfd-9d02-aace514cdcb7\" class=\"textannotation\">color<\/span>: red;\n}\n<\/code><\/pre>\n<h3>\u5c5e\u6027\u306e\u8ffd\u52a0<\/h3>\n<p>\u3053\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001\u305f\u3060\u540c\u3058\u30c6\u30ad\u30b9\u30c8\u304c\u51fa\u529b\u3055\u308c\u308b\u3060\u3051\u3067\u3001\u6c17\u306e\u5229\u3044\u305f\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u4ed6\u306e\u8981\u7d20\u3068\u540c\u3058\u3088\u3046\u306b\u3001HTML\u5c5e\u6027\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;hello-world name=\"Craig\"&gt;&lt;\/hello-world&gt;\n<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001&#8221;Hello Craig!&#8221;\u3068\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u4e0a\u66f8\u304d\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001<strong>HelloWorld<\/strong>\u30af\u30e9\u30b9\u306b<strong>constructor()<\/strong>\u95a2\u6570\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3059\u308b\u3068\u3001\u5404\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u4f5c\u6210\u6642\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u6ce8\u610f\u70b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li><strong>super()<\/strong>\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3066\u3001\u89aaHTMLElement\u3092\u521d\u671f\u5316\u3057<\/li>\n<li>\u4ed6\u306e\u521d\u671f\u5316\u3092\u884c\u3044\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067&#8221;World&#8221;\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b<strong>name<\/strong>\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-js\"><span id=\"urn:enhancement-918c3879-af8e-4bd5-bfe8-5b0e458120b9\" class=\"textannotation\">class<\/span> <span id=\"urn:enhancement-c8087885-79db-4b3d-9591-af71663fef69\" class=\"textannotation\">HelloWorld<\/span> extends HTMLElement {\n\n  <span id=\"urn:enhancement-71c7a971-eb7a-4dec-9616-6254b5b087d7\" class=\"textannotation\">constructor<\/span>() {\n    <span id=\"urn:enhancement-6d9dbbb6-fde9-4c73-943d-d04a428fda40\" class=\"textannotation\">super<\/span>();\n    this.name = 'World';\n  }\n\n  \/\/ more code...\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001<strong>name<\/strong>\u5c5e\u6027\u306e\u307f\u8003\u616e\u3057\u307e\u3059\u3002\u9759\u7684\u306a<strong>observedAttributes()<\/strong>\u304b\u3089\u306f\u3001\u76e3\u8996\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u914d\u5217\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">\/\/ <span id=\"urn:enhancement-f646316d-f906-417a-bad8-bc08921d6c11\" class=\"textannotation\">component<\/span> attributes\nstatic get observedAttributes() {\n  return ['name'];\n}\n<\/code><\/pre>\n<p><strong>attributeChangedCallback()<\/strong>\u30e1\u30bd\u30c3\u30c9\u306f\u3001HTML\u3067\u5c5e\u6027\u304c\u5b9a\u7fa9\u3055\u308c\u305f\u3068\u304d\u3001\u307e\u305f\u306fJavaScript\u3067\u5c5e\u6027\u304c\u5909\u66f4\u3055\u308c\u305f\u3068\u304d\u306b\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u306f\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u3001\u53e4\u3044\u5024\u3001\u65b0\u3057\u3044\u5024\u304c\u6e21\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">\/\/ <span id=\"urn:enhancement-b02510f1-3cdb-4454-8010-792956a3eaac\" class=\"textannotation\">attribute<\/span> change\nattributeChangedCallback(property, oldValue, newValue) {\n\n  if (oldValue === newValue) return;\n  this[ property ] = newValue;\n\n}\n<\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001<strong>name<\/strong>\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u307f\u304c\u66f4\u65b0\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001<strong>connectedCallback()<\/strong>\u30e1\u30bd\u30c3\u30c9\u5185\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5fae\u8abf\u6574\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">\/\/ connect <span id=\"urn:enhancement-e7385e79-08af-4fe6-ac1c-2a745e1c614d\" class=\"textannotation\">component<\/span>\nconnectedCallback() {\n\n  this.textContent = `Hello ${ this.name }!`;\n\n}\n<\/code><\/pre>\n<p><a href=\"https:\/\/codepen.io\/craigbuckler\/pen\/BaWqLOK\">CodePen\u306e\u30c7\u30e2<\/a><\/p>\n<h3>\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u30d6\u30e9\u30a6\u30b6\u306f\u3001Web Components\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3092\u901a\u3057\u3066\u30016\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u81ea\u52d5\u7684\u306b\u547c\u3073\u51fa\u3057\u307e\u3059\u3002\u6700\u521d\u306e4\u3064\u306f\u4e0a\u8a18\u306e\u4f8b\u3067\u3059\u3067\u306b\u89e6\u308c\u305f\u3068\u304a\u308a\u3067\u3059\u304c\u3001\u4e00\u89a7\u3067\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h4>constructor()<\/h4>\n<p>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u521d\u671f\u5316\u6642\u306b\u547c\u3070\u308c\u307e\u3059\u3002<strong>super()<\/strong>\u3092\u547c\u3073\u51fa\u3059\u5fc5\u8981\u304c\u3042\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3084\u305d\u306e\u4ed6\u306e\u30d7\u30ea\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>static observedAttributes()<\/h4>\n<p>\u30d6\u30e9\u30a6\u30b6\u304c\u76e3\u8996\u3059\u308b\u5c5e\u6027\u540d\u306e\u914d\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<h4>attributeChangedCallback(propertyName,<b> oldValue, newValue)<\/b><\/h4>\n<p>\u5c5e\u6027\u304c\u8a2d\u5b9a\u30fb\u5909\u66f4\u3055\u308c\u308b\u305f\u3073\u306b\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002HTML\u3067\u5b9a\u7fa9\u3057\u305f\u3082\u306e\u306f\u5373\u5ea7\u306b\u6e21\u3055\u308c\u307e\u3059\u304c\u3001JavaScript\u306b\u3088\u308a\u305d\u308c\u3092\u4fee\u6b63\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">document.querySelector('hello-world').setAttribute('name', 'Everyone');\n<\/code><\/pre>\n<p>\u3053\u3053\u3067\u306f\u3001\u5b9f\u884c\u306b\u969b\u3057\u3066\u518d\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u304c\u5fc5\u8981\u3068\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h4>connectedCallback()<\/h4>\n<p>Web Component\u304cDocument Object Model\u306b\u8ffd\u52a0\u3055\u308c\u305f\u6642\u306b\u547c\u3073\u51fa\u3055\u308c\u3001\u5fc5\u8981\u306a\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3092\u3059\u3079\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<h4>disconnectedCallback()<\/h4>\n<p>Web Component\u304cDocument Object Model\u304b\u3089\u524a\u9664\u3055\u308c\u305f\u3068\u304d\u306b\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002\u4fdd\u5b58\u3057\u305f\u72b6\u614b\u306e\u524a\u9664\u3084<a href=\"https:\/\/kinsta.com\/blog\/admin-ajax-php\/\">Ajax\u30ea\u30af\u30a8\u30b9\u30c8<\/a>\u306e\u4e2d\u65ad\u306a\u3069\u3001\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u304c\u5fc5\u8981\u306a\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h4>adoptedCallback()<\/h4>\n<p>\u3053\u306e\u95a2\u6570\u306f\u3001Web Component\u304c\u3042\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304b\u3089\u5225\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u79fb\u52d5\u3057\u305f\u3068\u304d\u306b\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002\u3069\u3093\u306a\u30b1\u30fc\u30b9\u3092\u601d\u3044\u6d6e\u304b\u3079\u308b\u304b\u60a9\u3080\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u826f\u3044\u4f7f\u3044\u9053\u304c\u898b\u3064\u304b\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2>Web Components\u3068\u4ed6\u306e\u8981\u7d20\u3068\u306e\u76f8\u4e92\u4f5c\u7528\u306b\u3064\u3044\u3066<\/h2>\n<p>Web Components\u306b\u306f\u3001JavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306f\u306a\u3044\u30e6\u30cb\u30fc\u30af\u306a\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>Shadow DOM<\/h3>\n<p>\u4e0a\u8a18\u3067\u4f5c\u6210\u3057\u305fWeb Component\u3067\u3082\u5341\u5206\u6a5f\u80fd\u3057\u307e\u3059\u304c\u3001\u5916\u90e8\u304b\u3089\u306e\u5e72\u6e09\u3092\u53d7\u3051\u306a\u3044\u308f\u3051\u3067\u306f\u306a\u304f\u3001CSS\u3084JavaScript\u306b\u3088\u308a\u4fee\u6b63\u3055\u308c\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u540c\u69d8\u306b\u3001\u3042\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u5b9a\u7fa9\u3057\u305f\u30b9\u30bf\u30a4\u30eb\u304c\u3001\u4ed6\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Shadow DOM\u306f\u3001Web Component\u306b\u5225\u9014DOM\u3092\u4ed8\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u30ab\u30d7\u30bb\u30eb\u5316\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\"><span id=\"urn:enhancement-72ad6d4a-a31e-492d-a4db-a563bf838280\" class=\"textannotation\">const<\/span> shadow = this.attachShadow({ mode: 'closed' });\n<\/code><\/pre>\n<p>\u30e2\u30fc\u30c9\u306f\u6b21\u306e\u3069\u3061\u3089\u304b\u3067\u3059\u3002<\/p>\n<ol>\n<li><strong>&#8220;open<\/strong>&#8221; &#8211; \u5916\u90e8\u30da\u30fc\u30b8\u306eJavaScript\u3067\u3082Shadow DOM\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\uff08<a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/Element\/shadowRoot\">shadowRoot<\/a>\u4f7f\u7528\uff09<\/li>\n<li><strong>&#8220;closed<\/strong>&#8221; &#8211; Web Component\u5185\u3067\u306e\u307fShadow DOM\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b<\/li>\n<\/ol>\n<p>Shadow DOM\u306f\u4ed6\u306eDOM\u8981\u7d20\u3068\u540c\u69d8\u306b\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">connectedCallback() {\n\n  <span id=\"urn:enhancement-25bd4665-5f2a-44f6-863b-af40f41a27fb\" class=\"textannotation\">const<\/span> shadow = this.attachShadow({ mode: 'closed' });\n\n  shadow.innerHTML = `\n    &lt;style&gt;\n      p {\n        <span id=\"urn:enhancement-9a461f37-3c8e-4979-86c9-1610a445f2e1\" class=\"textannotation\">text<\/span>-align: center;\n        font-weight: normal;\n        padding: 1em;\n        margin: 0 0 2em 0;\n        background-<span id=\"urn:enhancement-97fd6bde-b8e4-4043-b673-41b98aad55f0\" class=\"textannotation\">color<\/span>: #eee;\n        border: 1px solid #666;\n      }\n    &lt;\/style&gt;\n\n    &lt;p&gt;Hello ${ this.name }!&lt;\/p&gt;`;\n\n}<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u306f\u3001&#8221;Hello&#8221;\u30c6\u30ad\u30b9\u30c8\u3092<code><strong>&lt;p&gt;<\/strong><\/code>\u8981\u7d20\u5185\u3067\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u3001\u30b9\u30bf\u30a4\u30eb\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/kinsta.com\/blog\/html-fonts\/\">\u30d5\u30a9\u30f3\u30c8<\/a>\u3084\u8272\u306a\u3069\u306e\u4e00\u90e8\u306e\u30b9\u30bf\u30a4\u30eb\u306f\u660e\u793a\u7684\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u30da\u30fc\u30b8\u304b\u3089\u7d99\u627f\u3055\u308c\u307e\u3059\u304c\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5916\u306eJavaScript\u3084CSS\u3067\u5909\u66f4\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p><a href=\"https:\/\/codepen.io\/craigbuckler\/pen\/rNyqyJJ\">CodePen\u306e\u30c7\u30e2<\/a><\/p>\n<p>\u3053\u306eWeb Components\u306e\u30b9\u30bf\u30a4\u30eb\u306f\u3001\u30da\u30fc\u30b8\u4e0a\u306e\u4ed6\u306e\u6587\u7ae0\u3084\u3001\u4ed6\u306e<code><strong>&lt;hello-world&gt;<\/strong><\/code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u3082\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u306a\u304a\u3001CSS\u306e<code>:host<\/code>\u30bb\u30ec\u30af\u30bf\u306f\u3001Web Component\u5185\u304b\u3089\u5916\u5074\u306e<code><strong>&lt;hello-world&gt;<\/strong><\/code>\u8981\u7d20\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-css\">:host {\n  transform: rotate(180deg);\n}\n<\/code><\/pre>\n<p>\u307e\u305f\u3001<code><strong>&lt;hello-world class=\"rotate90\"&gt;<\/strong><\/code>\u306e\u3088\u3046\u306b\u3001\u8981\u7d20\u304c\u7279\u5b9a\u306e\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3068\u304d\u306b\u9069\u7528\u3055\u308c\u308b\u30b9\u30bf\u30a4\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-css\">:host(.rotate90) {\n  transform: rotate(90deg);\n}\n<\/code><\/pre>\n<h3>HTML\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/h3>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u5185\u3067HTML\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u306f\u3001\u8907\u96d1\u306aWeb Components\u3067\u306f\u3042\u307e\u308a\u5b9f\u7528\u7684\u3067\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Web Component\u3067\u4f7f\u7528\u3067\u304d\u308bHTML\u306e\u304b\u305f\u307e\u308a\u3092\u30da\u30fc\u30b8\u3067\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>JavaScript\u5185\u306e\u6587\u5b57\u5217\u3092\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u306a\u304f\u3001HTML\u30b3\u30fc\u30c9\u3092\u3044\u3058\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001\u7a2e\u985e\u3054\u3068\u306bJavaScript\u306e\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>HTML\u306fHTML\u3068\u3057\u3066\u5b9a\u7fa9\u3059\u308b\u65b9\u304c\u7c21\u5358\u3067\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u524d\u306b\u30b5\u30fc\u30d0\u30fc\u3084\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u4fee\u6b63\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/li>\n<\/ol>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f<code><strong>&lt;template&gt;<\/strong><\/code>\u30bf\u30b0\u3067\u5b9a\u7fa9\u3057\u307e\u3059\u3002ID\u3092\u4ed8\u4e0e\u3057\u3066\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30af\u30e9\u30b9\u5185\u3067\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u306e\u304c\u73fe\u5b9f\u7684\u3067\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u30013\u3064\u306e\u6bb5\u843d\u3067\u300cHello\u300d\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;template id=\"hello-world\"&gt;\n\n  &lt;style&gt;\n    p {\n      <span id=\"urn:enhancement-891d8253-99e3-44cb-be16-d84d9ee3e8be\" class=\"textannotation\">text<\/span>-align: center;\n      font-weight: normal;\n      padding: 0.5em;\n      margin: 1px 0;\n      background-<span id=\"urn:enhancement-daea780a-d067-454a-9798-afda04504aad\" class=\"textannotation\">color<\/span>: #eee;\n      border: 1px solid #666;\n    }\n  &lt;\/style&gt;\n\n  &lt;p <span id=\"urn:enhancement-be53e408-a95d-4397-9186-1af17949caaf\" class=\"textannotation\">class<\/span>=\"hw-<span id=\"urn:enhancement-062f65e0-667a-4d46-bc4a-1ddbec80c4cd\" class=\"textannotation\">text<\/span>\"&gt;&lt;\/p&gt;\n  &lt;p <span id=\"urn:enhancement-0f8bf499-5853-4c13-95ba-f9481fa0d710\" class=\"textannotation\">class<\/span>=\"hw-<span id=\"urn:enhancement-3dbe46cd-9823-4323-9ed3-5cea690c3537\" class=\"textannotation\">text<\/span>\"&gt;&lt;\/p&gt;\n  &lt;p <span id=\"urn:enhancement-bf1abb37-426a-411e-b033-14edb89c92c9\" class=\"textannotation\">class<\/span>=\"hw-<span id=\"urn:enhancement-f46d5110-4499-4f53-a8bf-75d4dc4f9b5c\" class=\"textannotation\">text<\/span>\"&gt;&lt;\/p&gt;\n\n&lt;\/template&gt;\n<\/code><\/pre>\n<p>Web Component\u30af\u30e9\u30b9\u306f\u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u305d\u306e\u5185\u5bb9\u3092\u53d6\u5f97\u3001\u8981\u7d20\u3092<a href=\"https:\/\/kinsta.com\/blog\/clone-wordpress-site\/\">\u8907\u88fd\u3057\u3066<\/a>\u3001\u5834\u6240\u306b\u9650\u3089\u305a\u4e00\u610f\u306eDOM\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u4f5c\u6210\u3092\u4fdd\u8a3c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\"><span id=\"urn:enhancement-10bb1311-dbbb-4c69-b469-07c5a7718dea\" class=\"textannotation\">const<\/span> template = document.getElementById('hello-world').content.cloneNode(true);<\/code><\/pre>\n<p>DOM\u3092\u4fee\u6b63\u3057\u3001Shadow DOM\u306b\u76f4\u63a5\u8ffd\u52a0\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">connectedCallback() {\n\n  <span id=\"urn:enhancement-52d71262-679c-44ef-8a36-2bf02763608e\" class=\"textannotation\">const<\/span>\n\n    shadow = this.attachShadow({ mode: 'closed' }),\n    template = document.getElementById('hello-world').content.cloneNode(true),\n    hwMsg = `Hello ${ this.name }`;\n\n  Array.from( template.querySelectorAll('.hw-<span id=\"urn:enhancement-47329adc-5b6e-4e88-8020-980669f191cf\" class=\"textannotation\">text<\/span>') )\n    .forEach( n =&gt; n.textContent = hwMsg );\n\n  shadow.append( template );\n\n}\n<\/code><\/pre>\n<p><a href=\"https:\/\/codepen.io\/craigbuckler\/pen\/QWpZvdQ\">CodePen\u306e\u30c7\u30e2<\/a><\/p>\n<h3>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30b9\u30ed\u30c3\u30c8<\/h3>\n<p>\u30b9\u30ed\u30c3\u30c8\u306f\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001<code><strong>&lt;hello-world&gt;<\/strong><\/code>Web Component\u3092\u4f7f\u7528\u3057\u306a\u304c\u3089\u3001Shadow DOM\u5185\u306e<strong>&lt;h1&gt;<\/strong>\u306e\u898b\u51fa\u3057\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u914d\u7f6e\u3059\u308b\u3068\u3057\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;hello-world name=\"Craig\"&gt;\n\n  &lt;h1 slot=\"msgtext\"&gt;Hello Default!&lt;\/h1&gt;\n\n&lt;\/hello-world&gt;\n<\/code><\/pre>\n<p>(<strong>slot<\/strong>\u5c5e\u6027\u306b\u6ce8\u610f\uff09<\/p>\n<p>\u4efb\u610f\u3067\u3001\u5225\u306e\u6bb5\u843d\u306a\u3069\u4ed6\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;hello-world name=\"Craig\"&gt;\n\n  &lt;h1 slot=\"msgtext\"&gt;Hello Default!&lt;\/h1&gt;\n  &lt;p&gt;This <span id=\"urn:enhancement-8e38ae4b-d335-4e83-a86a-fe97e25c6759\" class=\"textannotation\">text<\/span> will become part of the <span id=\"urn:enhancement-b4892705-2fa5-4ad3-8929-ce08403f12dc\" class=\"textannotation\">component<\/span>.&lt;\/p&gt;\n\n&lt;\/hello-world&gt;\n<\/code><\/pre>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5185\u306b\u30b9\u30ed\u30c3\u30c8\u3092\u5b9f\u88c5\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre><code class=\"language-html\">&lt;template id=\"hello-world\"&gt;\n\n  &lt;slot name=\"msgtext\" <span id=\"urn:enhancement-b6df6520-6279-4805-993c-dd704fa6a31e\" class=\"textannotation\">class<\/span>=\"hw-<span id=\"urn:enhancement-54d1b04b-72b6-4444-8ee6-681ce2314bde\" class=\"textannotation\">text<\/span>\"&gt;&lt;\/slot&gt;\n\n  &lt;slot&gt;&lt;\/slot&gt;\n\n&lt;\/template&gt;\n<\/code><\/pre>\n<p><code><strong>&lt;h1&gt;<\/strong><\/code>\uff08&#8221;msgtext&#8221;\u5c5e\u6027\uff09\u304c\u3001&#8221;msgtext&#8221;\u3068\u3044\u3046\u540d\u524d\u306e<code><strong>&lt;slot&gt;<\/strong><\/code>\u306b\u633f\u5165\u3055\u308c\u307e\u3059\u3002<code><strong>&lt;p&gt;<\/strong><\/code>\u306b\u306f\u30b9\u30ed\u30c3\u30c8\u540d\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u6b21\u306b\u5229\u7528\u53ef\u80fd\u306b\u306a\u3063\u305f\u7121\u540d\u306e<code><strong>&lt;slot&gt;<\/strong><\/code>\u3067\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;template id=\"hello-world\"&gt;\n\n  &lt;slot name=\"msgtext\" <span id=\"urn:enhancement-17bc6870-c8fb-4308-8b8a-b987fbdfd221\" class=\"textannotation\">class<\/span>=\"hw-<span id=\"urn:enhancement-e174be4e-8e30-4283-b4f7-e2431212c677\" class=\"textannotation\">text<\/span>\"&gt;\n    &lt;h1 slot=\"msgtext\"&gt;Hello Default!&lt;\/h1&gt;\n  &lt;\/slot&gt;\n\n  &lt;slot&gt;\n    &lt;p&gt;This <span id=\"urn:enhancement-618a5a7c-0ea8-4376-a043-09c0f27649ba\" class=\"textannotation\">text<\/span> will become part of the <span id=\"urn:enhancement-7d1a3c87-a6d9-44cd-87d9-180aa57f14b5\" class=\"textannotation\">component<\/span>.&lt;\/p&gt;\n  &lt;\/slot&gt;\n\n&lt;\/template&gt;\n<\/code><\/pre>\n<p>\u305f\u3060\u3057\u3001\u73fe\u5b9f\u306b\u306f\u3053\u3093\u306a\u306b\u5358\u7d14\u306b\u306f\u3044\u304d\u307e\u305b\u3093\u3002Shadow DOM\u5185\u306e<code><strong>&lt;slot&gt;<\/strong><\/code>\u8981\u7d20\u306f\u3001\u633f\u5165\u3055\u308c\u305f\u8981\u7d20\u3092\u6307\u3057\u307e\u3059\u3002<code><strong>&lt;slot&gt;<\/strong><\/code>\u3092\u898b\u3064\u3051\u3066\u304b\u3089<a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/HTMLSlotElement\/assignedNodes\">.assignedNodes()\u30e1\u30bd\u30c3\u30c9<\/a>\u3092\u4f7f\u7528\u3057\u3066\u3001\u5185\u90e8\u306e\u5b50\u306e\u914d\u5217\u3092\u8fd4\u3059\u3053\u3068\u306b\u3088\u3063\u3066\u306e\u307f\u3001\u3053\u308c\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002\u66f4\u65b0\u3057\u305f<strong>connectedCallback()<\/strong>\u30e1\u30bd\u30c3\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">connectedCallback() {\n\n  <span id=\"urn:enhancement-f1804cc9-8e38-429d-b229-61e6f4fd0c97\" class=\"textannotation\">const<\/span>\n    shadow = this.attachShadow({ mode: 'closed' }),\n    hwMsg = `Hello ${ this.name }`;\n\n  \/\/ append shadow <span id=\"urn:enhancement-0bb67148-8cc2-48b2-ae8d-d6f19bc9965c\" class=\"textannotation\">DOM<\/span>\n  shadow.append(\n    document.getElementById('hello-world').content.cloneNode(true)\n  );\n\n  \/\/ find all slots with a hw-<span id=\"urn:enhancement-d6d9158a-cdbb-4d9f-9f75-5d1f6907c4da\" class=\"textannotation\">text<\/span> <span id=\"urn:enhancement-411b3aa6-7ab4-485f-96c0-3bd7d050ec49\" class=\"textannotation\">class<\/span>\n  Array.from( shadow.querySelectorAll('slot.hw-<span id=\"urn:enhancement-db415d67-b263-4b5b-9046-caaf22e70f2d\" class=\"textannotation\">text<\/span>') )\n\n    \/\/ update first assignedNode in slot\n    .forEach( n =&gt; n.assignedNodes()[0].textContent = hwMsg );\n\n}\n<\/code><\/pre>\n<p><a href=\"https:\/\/codepen.io\/craigbuckler\/pen\/gOmBBvm\">CodePen\u306e\u30c7\u30e2<\/a><\/p>\n<p>\u307e\u305f\u3001Web Component\u5185\u306e\u7279\u5b9a\u306e\u30b9\u30ed\u30c3\u30c8\u3092\u5bfe\u8c61\u306b\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u3001\u633f\u5165\u3055\u308c\u305f\u8981\u7d20\u306b\u76f4\u63a5\u30b9\u30bf\u30a4\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<pre><code class=\"language-html\">&lt;template id=\"hello-world\"&gt;\n\n  &lt;style&gt;\n    slot[name=\"msgtext\"] { <span id=\"urn:enhancement-7c2c876c-5331-41ba-82e4-c1f25f39793b\" class=\"textannotation\">color<\/span>: green; }\n  &lt;\/style&gt;\n\n  &lt;slot name=\"msgtext\" <span id=\"urn:enhancement-ac5f21bd-6f19-44f6-98d3-625d96e118b3\" class=\"textannotation\">class<\/span>=\"hw-<span id=\"urn:enhancement-95f0c6db-8342-471a-85d1-54e2589e65d4\" class=\"textannotation\">text<\/span>\"&gt;&lt;\/slot&gt;\n  &lt;slot&gt;&lt;\/slot&gt;\n\n&lt;\/template&gt;\n<\/code><\/pre>\n<p><a href=\"https:\/\/kinsta.com\/blog\/wordpress-template-hierarchy\/\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/a>\u30b9\u30ed\u30c3\u30c8\u306f\u5c11\u3057\u7279\u6b8a\u3067\u3059\u304c\u3001JavaScript\u306e\u5b9f\u884c\u306b\u5931\u6557\u3057\u305f\u5834\u5408\u3067\u3082\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u304c\u5f37\u307f\u3067\u3059\u3002\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u898b\u51fa\u3057\u3068\u6bb5\u843d\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002Web Component\u30af\u30e9\u30b9\u304c\u6b63\u5e38\u306b\u5b9f\u884c\u3055\u308c\u305f\u5834\u5408\u306b\u306e\u307f\u7f6e\u304d\u63db\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;hello-world name=\"Craig\"&gt;\n\n  &lt;h1 slot=\"msgtext\"&gt;Hello Default!&lt;\/h1&gt;\n  &lt;p&gt;This <span id=\"urn:enhancement-8a9a7213-e029-4052-9fec-64d1d181ec25\" class=\"textannotation\">text<\/span> will become part of the <span id=\"urn:enhancement-75c88fd4-1e92-45e3-87aa-84e26a2d9d04\" class=\"textannotation\">component<\/span>.&lt;\/p&gt;\n\n&lt;\/hello-world&gt;\n<\/code><\/pre>\n<p>\u3057\u305f\u304c\u3063\u3066\u3001\u4f55\u3089\u304b\u306e\u5f62\u3067\u30d7\u30ed\u30b0\u30ec\u30c3\u30b7\u30d6\u30a8\u30f3\u30cf\u30f3\u30b9\u30e1\u30f3\u30c8\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u305d\u308c\u304c<em>\u300c<\/em><em>JavaScript<\/em><em>\u304c\u5fc5\u8981\u3067\u3059\u300d<\/em>\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3042\u3063\u305f\u3068\u3057\u3066\u3082\u3067\u3059\u3002<\/p>\n<h3>\u5ba3\u8a00\u578bShadow DOM<\/h3>\n<p>\u4e0a\u8a18\u306e\u5404\u4f8b\u3067\u306f\u3001JavaScript\u3092\u4f7f\u7528\u3057\u3066Shadow DOM\u3092\u69cb\u7bc9\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u304c\u552f\u4e00\u306e\u9078\u629e\u80a2\u3067\u3042\u308b\u3053\u3068\u306b\u5909\u308f\u308a\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u5b9f\u9a13\u7684\u306b<a href=\"https:\/\/kinsta.com\/blog\/best-chrome-extensions\/\">Chrome<\/a>\u7528\u306e\u5ba3\u8a00\u578bShadow DOM\u304c\u958b\u767a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u304c\u53ef\u80fd\u306b\u306a\u308a\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u305a\u308c\u3084\u30b9\u30bf\u30a4\u30eb\u306e\u3061\u3089\u3064\u304d\uff08FOUC\uff09\u3092\u56de\u907f\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001HTML\u30d1\u30fc\u30b5\u30fc\u306b\u3088\u3063\u3066\u691c\u51fa\u3055\u308c\u3001\u5148\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u6271\u3063\u305f\u306e\u3068\u540c\u3058Shadow DOM\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\uff08\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff09\u3002<\/p>\n<pre><code class=\"language-html\">&lt;hello-world name=\"Craig\"&gt;\n\n  &lt;template shadowroot=\"closed\"&gt;\n    &lt;slot name=\"msgtext\" <span id=\"urn:enhancement-6b07d011-0502-4913-94f0-d719dcd03a2a\" class=\"textannotation\">class<\/span>=\"hw-<span id=\"urn:enhancement-fa0391c6-823d-4833-b136-b931823d91d9\" class=\"textannotation\">text<\/span>\"&gt;&lt;\/slot&gt;\n    &lt;slot&gt;&lt;\/slot&gt;\n  &lt;\/template&gt;\n\n  &lt;h1 slot=\"msgtext\"&gt;Hello Default!&lt;\/h1&gt;\n  &lt;p&gt;This <span id=\"urn:enhancement-78aa38a4-fa81-4dd7-9ed0-594938338b81\" class=\"textannotation\">text<\/span> will become part of the <span id=\"urn:enhancement-937fcfe0-e855-4f8a-a5ef-488461534a29\" class=\"textannotation\">component<\/span>.&lt;\/p&gt;\n\n&lt;\/hello-world&gt;\n<\/code><\/pre>\n<p>\u3053\u306e\u6a5f\u80fd\u306f\u3069\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u3082\u5229\u7528\u3067\u304d\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001Firefox\u3084Safari\u3067\u6b63\u5e38\u306b\u6a5f\u80fd\u3059\u308b\u4fdd\u8a3c\u306f\u3042\u308a\u307e\u305b\u3093\u3002<a href=\"https:\/\/web.dev\/declarative-shadow-dom\/\">\u5ba3\u8a00\u578bShadow DOM\u306e\u8a73\u7d30\u306f\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u30dd\u30ea\u30d5\u30a3\u30eb\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u304c\u3001\u5b9f\u88c5\u5185\u5bb9\u304c\u5909\u66f4\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u306b\u306f\u3001\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>Shadow DOM\u30a4\u30d9\u30f3\u30c8<\/h3>\n<p>Web Component\u306f\u3001\u30da\u30fc\u30b8DOM\u3068\u540c\u69d8\u306b\u3001Shadow DOM\u306e\u4efb\u610f\u306e\u8981\u7d20\u306b\u30a4\u30d9\u30f3\u30c8\u3092\u7d50\u3073\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">shadow.addEventListener('click', e =&gt; {\n\n  \/\/ do something\n\n});\n<\/code><\/pre>\n<p><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/Event\/stopPropagation\">stopPropagation<\/a>\u3092\u884c\u308f\u306a\u3044\u9650\u308a\u3001\u30a4\u30d9\u30f3\u30c8\u306f\u30da\u30fc\u30b8DOM\u306b\u30d0\u30d6\u30eb\u30a2\u30c3\u30d7\u3055\u308c\u307e\u3059\u304c\u3001\u518d\u3073\u5bfe\u8c61\u306b\u6307\u5b9a\u3055\u308c\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30a4\u30d9\u30f3\u30c8\u306f\u305d\u306e\u4e2d\u306e\u8981\u7d20\u3067\u306f\u306a\u304f\u3001\u30ab\u30b9\u30bf\u30e0\u8981\u7d20\u304b\u3089\u767a\u751f\u3059\u308b\u3088\u3046\u306a\u69d8\u76f8\u3092\u5448\u3057\u307e\u3059\u3002<\/p>\n<h2>\u4ed6\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067Web Components\u3092\u5229\u7528\u3059\u308b<\/h2>\n<p>\u4f5c\u6210\u3057\u305fWeb Component\u306f\u3001\u3059\u3079\u3066\u306e<a href=\"https:\/\/kinsta.com\/jp\/blog\/javascript-libraries\/#the-most-popular-javascript-frameworks\">JavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/a>\u3067\u6a5f\u80fd\u3057\u307e\u3059\u3002\u3069\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3082\u3001HTML\u306e\u8981\u7d20\u3092\u7406\u89e3\u3057\u5f97\u307e\u305b\u3093\u3002<code><strong>&lt;hello-world&gt;<\/strong><\/code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f<code><strong>&lt;div&gt;<\/strong><\/code>\u3068\u540c\u3058\u3088\u3046\u306b\u6271\u308f\u308c\u3001DOM\u5185\u306b\u914d\u7f6e\u3055\u308c\u307e\u3059\uff08\u3053\u3053\u3067\u30af\u30e9\u30b9\u304c\u6709\u52b9\u306b\u306a\u308b\uff09\u3002<\/p>\n<p><a href=\"https:\/\/custom-elements-everywhere.com\/\">custom-elements-everywhere.com<\/a>\u3067\u306f\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4e00\u89a7\u3068 Web Component\u306e\u30ce\u30fc\u30c8\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002React.js\u306b\u3064\u3044\u3066\u306f\u3044\u304f\u3064\u304b\u306e\u8ab2\u984c\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u307b\u3068\u3093\u3069\u306f\u5b8c\u5168\u306b\u4e92\u63db\u6027\u304c\u3042\u308a\u307e\u3059\u3002JSX\u3067<code><strong>&lt;hello-world&gt;<\/strong><\/code>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">import <span id=\"urn:enhancement-26d4db8f-2fb2-419f-9e9c-fbc871050380\" class=\"textannotation\">React<\/span> from '<span id=\"urn:enhancement-d7dd4cd2-9cca-48b0-9fc5-747584427d5a\" class=\"textannotation\">react<\/span>';\nimport ReactDOM from '<span id=\"urn:enhancement-ba7f9f62-7f08-493d-8653-bf5d0322db51\" class=\"textannotation\">react<\/span>-dom';\nimport from '.\/hello-world.js';\n\nfunction MyPage() {\n\n  return (\n    &lt;&gt;\n      &lt;hello-world name=\"Craig\"&gt;&lt;\/hello-world&gt; \n    &lt;\/&gt;\n  );\n\n}\n\nReactDOM.render(&lt;MyPage \/&gt;, document.getElementById('root'));\n<\/code><\/pre>\n<p>&#8230;\u3057\u304b\u3057\u3001\u4ee5\u4e0b\u306e\u70b9\u306b\u306f\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>React\u306fHTML\u5c5e\u6027\u306b\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u3057\u304b\u6e21\u305b\u306a\u3044\uff08\u914d\u5217\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u6e21\u305b\u306a\u3044\uff09<\/li>\n<li>React\u306fWeb Component\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u30ea\u30c3\u30b9\u30f3\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u624b\u52d5\u3067\u72ec\u81ea\u306e\u30cf\u30f3\u30c9\u30e9\u3092\u5229\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b<\/li>\n<\/ul>\n<h2>Web Components\u3078\u306e\u6279\u5224\u3068\u305d\u306e\u8ab2\u984c<\/h2>\n<p>Web Components\u306f\u5927\u5e45\u306b\u6539\u5584\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u7ba1\u7406\u304c\u9762\u5012\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3002<\/p>\n<h3>\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u306e\u96e3\u3057\u3055<\/h3>\n<p>Web Components\u306e\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u8ab2\u984c\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30b9\u30b3\u30fc\u30d7\u306e\u9650\u3089\u308c\u305f\u30b9\u30bf\u30a4\u30eb\u306e\u4e0a\u66f8\u304d\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u89e3\u6c7a\u7b56\u306f\u3044\u304f\u3064\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>Shadow DOM<\/strong><strong>\u306e\u4f7f\u7528\u3092\u907f\u3051\u308b<\/strong>: \u30ab\u30b9\u30bf\u30e0\u8981\u7d20\u306b\u76f4\u63a5\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff08\u305f\u3060\u3057\u3001\u4ed6\u306eJavaScript\u304c\u5076\u7136\u307e\u305f\u306f\u60aa\u610f\u3092\u6301\u3063\u3066\u305d\u308c\u3092\u5909\u66f4\u3059\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\uff09\u3002<\/li>\n<li><code><strong>:host<\/strong><\/code><strong>\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3059\u308b<\/strong>: \u4e0a\u3067\u898b\u305f\u3088\u3046\u306b\u3001<a href=\"https:\/\/kinsta.com\/blog\/critical-rendering-path\/#optimize-css\">\u30b9\u30b3\u30fc\u30d7\u4ed8\u304dCSS<\/a>\u306f\u30ab\u30b9\u30bf\u30e0\u8981\u7d20\u306b\u30af\u30e9\u30b9\u304c\u8a2d\u5b9a\u3055\u308c\u305f\u3068\u304d\u306b\u7279\u5b9a\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>CSS<\/strong><strong>\u306e\u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\uff08\u5909\u6570\uff09\u3092\u78ba\u8a8d\u3059\u308b<\/strong>: \u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u306fWeb Components\u306b\u30ab\u30b9\u30b1\u30fc\u30c9\u3055\u308c\u308b\u306e\u3067\u3001\u8981\u7d20\u304c<code><strong>var(-my-color)<\/strong><\/code>\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u5916\u5074\u306e\u30b3\u30f3\u30c6\u30ca\uff08\u4f8b\u3048\u3070<code><strong>:root<\/strong><\/code>\uff09\u3067<code><strong>--my-color<\/strong><\/code>\u3092\u8a2d\u5b9a\u3059\u308c\u3070\u3001\u305d\u308c\u304c\u4f7f\u7528\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li><strong>part<\/strong><strong>\u5c5e\u6027\u3092\u6d3b\u7528\u3059\u308b<\/strong>: \u65b0\u3057\u3044\u7591\u4f3c\u8981\u7d20<a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/CSS\/::part\">::part()<\/a>\u306f\u3001part\u5c5e\u6027\u3092\u6301\u3064\u5185\u90e8\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001<code><strong>&lt;hello-world&gt;<\/strong><\/code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5185\u306e<code><strong>&lt;h1 part=\"heading\"&gt;<\/strong><\/code>\u306f\u3001\u30bb\u30ec\u30af\u30bf<code><strong>hello-world::part(heading)<\/strong><\/code> \u3067\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>\u30b9\u30bf\u30a4\u30eb\u306e\u6587\u5b57\u5217\u3092\u6e21\u3059<\/strong>: <code><strong>&lt;style&gt;<\/strong><\/code>\u30d6\u30ed\u30c3\u30af\u306e\u4e2d\u3067\u9069\u7528\u3059\u308b\u5c5e\u6027\u3068\u3057\u3066\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u3069\u306e\u89e3\u6c7a\u7b56\u3082\u3001\u7406\u60f3\u7684\u3068\u306f\u8a00\u3048\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u3069\u306e\u3088\u3046\u306bWeb Component\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u304b\u306b\u3064\u3044\u3066\u3082\u3001\u614e\u91cd\u306b\u8a08\u753b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u7121\u8996\u3055\u308c\u308b\u5165\u529b<\/h3>\n<p>Shadow DOM\u306b\u3042\u308b <code><b>&lt;input&gt;<\/b><\/code>, <code><b>&lt;textarea&gt;<\/b><\/code>, or <code><b>&lt;select&gt;<\/b><\/code> \u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u3001\u3053\u308c\u3092\u5185\u5305\u3059\u308b\u30d5\u30a9\u30fc\u30e0\u5185\u3067\u81ea\u52d5\u7684\u306b\u7d10\u4ed8\u3051\u3089\u308c\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u521d\u671f\u306eWeb Component\u63a1\u7528\u8005\u306f\u3001\u30da\u30fc\u30b8DOM\u306b\u96a0\u3057\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3001<a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/FormData\">FormData\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9<\/a>\u3092\u4f7f\u7528\u3057\u305f\u308a\u3057\u3066\u3001\u5024\u3092\u66f4\u65b0\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u3069\u3061\u3089\u3082\u7279\u306b\u5b9f\u7528\u7684\u3067\u306f\u306a\u304f\u3001Web Component\u306e\u30ab\u30d7\u30bb\u30eb\u69cb\u9020\u3092\u58ca\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u65b0\u3057\u3044ElementInternals\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u3001Web Component\u304c\u30d5\u30a9\u30fc\u30e0\u306b<a href=\"https:\/\/kinsta.com\/blog\/wordpress-hooks\/\">\u30d5\u30c3\u30af\u3057\u3066<\/a>\u3001\u30ab\u30b9\u30bf\u30e0\u5024\u3084\u6709\u52b9\u6027\u3092\u5b9a\u7fa9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3082\u306e\u3067\u3059\u3002Chrome\u3067\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4ed6\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u306f<a href=\"https:\/\/www.npmjs.com\/package\/element-internals-polyfill\">\u30dd\u30ea\u30d5\u30a3\u30eb\u304c\u5229\u7528\u53ef\u80fd<\/a>\u3067\u3059\u3002<\/p>\n<p>\u30c7\u30e2\u3068\u3057\u3066\u3001\u57fa\u672c\u7684\u306a<code><strong>&lt;input-age name=\"your-age\"&gt;&lt;\/input-age&gt;<\/strong><\/code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u30af\u30e9\u30b9\u306f\u3001\u9759\u7684\u306a<strong>formAssociated<\/strong>\u5024\u3092true\u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066\u3001\u5916\u90e8\u30d5\u30a9\u30fc\u30e0\u304c\u7d10\u4ed8\u3051\u3089\u308c\u305f\u3068\u304d\u306b<strong>formAssociatedCallback()<\/strong>\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">\/\/ &lt;input-age&gt; web <span id=\"urn:enhancement-0d8c2317-f562-4252-9c67-17acfbbbf006\" class=\"textannotation\">component<\/span>\n<span id=\"urn:enhancement-c5c0bf00-cb75-4394-956c-31249730bd29\" class=\"textannotation\">class<\/span> InputAge extends HTMLElement {\n\n  static formAssociated = true;\n\n  formAssociatedCallback(form) {\n    console.log('form associated:', form.id);\n  }\n<\/code><\/pre>\n<p>\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067\u306f\u3001<strong>attachInternals()<\/strong>\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u30d5\u30a9\u30fc\u30e0\u3084\u3001\uff08\u5024\u306e\u691c\u8a3c\u3084\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u3059\u308b\u5fc5\u8981\u306e\u3042\u308b\uff09\u4ed6\u306e<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-javascript\/\">JavaScript \u30b3\u30fc\u30c9\u3068\u3084\u308a\u53d6\u308a<\/a>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">  <span id=\"urn:enhancement-1f15cbd6-0abe-4d1f-a7d2-9ec9a4acb2f7\" class=\"textannotation\">constructor<\/span>() {\n\n    <span id=\"urn:enhancement-c52b6273-d3c2-4707-b4d0-f644b2d2d1cb\" class=\"textannotation\">super<\/span>();\n    this.internals = this.attachInternals();\n    this.setValue('');\n\n  }\n\n  \/\/ set form <span id=\"urn:enhancement-7d566295-75c3-4076-b4b3-3870efb10c36\" class=\"textannotation\">value<\/span>\n\n  setValue(v) {\n\n    this.value = v;\n\n    this.internals.setFormValue(v);\n\n  }\n<\/code><\/pre>\n<p>ElementInternal\u306e<strong>setFormValue()<\/strong>\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u3053\u3053\u3067\u7a7a\u6587\u5b57\u5217\u306b\u3066\u521d\u671f\u5316\u3055\u308c\u305f\u89aa\u30d5\u30a9\u30fc\u30e0\u306b\u5bfe\u3059\u308b\u8981\u7d20\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\uff08\u8907\u6570\u306e\u540d\u524d\u3068\u5024\u306e\u30da\u30a2\u3092\u6301\u3064FormData\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6e21\u3059\u3053\u3068\u3082\u53ef\u80fd\uff09\u3002\u305d\u306e\u4ed6\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u30e1\u30bd\u30c3\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>form<\/strong>: \u89aa\u30d5\u30a9\u30fc\u30e0<\/li>\n<li><strong>labels<\/strong>: \uff08\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u30e9\u30d9\u30eb\u3092\u4ed8\u3051\u308b\uff09\u8981\u7d20\u306e\u914d\u5217<\/li>\n<li>willValidate\u3001checkValidity\u3001validationMessage\u306a\u3069\u306e<a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/Constraint_validation\">\u5236\u7d04\u691c\u8a3cAPI<\/a>\u30aa\u30d7\u30b7\u30e7\u30f3<\/li>\n<\/ul>\n<p><strong>connectedCallback()<\/strong>\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u524d\u306e\u5834\u5408\u3068\u540c\u69d8\u306bShadow <a href=\"https:\/\/kinsta.com\/blog\/critical-rendering-path\/#the-dom\">DOM<\/a>\u3092\u4f5c\u6210\u3057\u307e\u3059\u304c\u3001\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u52a0\u3048\u3089\u308c\u305f\u5909\u66f4\u3092\u76e3\u8996\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001<strong>setFormValue()<\/strong>\u304c\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">  connectedCallback() {\n\n    <span id=\"urn:enhancement-cae50b18-706a-4cd5-adc0-16babdca5619\" class=\"textannotation\">const<\/span> shadow = this.attachShadow({ mode: 'closed' });\n\n    shadow.innerHTML = `\n      &lt;style&gt;input { width: 4em; }&lt;\/style&gt;\n      &lt;input type=\"number\" <span id=\"urn:enhancement-6f84fe17-96d5-4aa1-9e3b-f93208a8c6e0\" class=\"textannotation\">placeholder<\/span>=\"age\" min=\"18\" max=\"120\" \/&gt;`;\n\n    \/\/ monitor input values\n    shadow.querySelector('input').addEventListener('input', e =&gt; {\n      this.setValue(e.target.value);\n    });\n\n  }\n<\/code><\/pre>\n<p>\u3053\u306eWeb Component\u3092\u4f7f\u3063\u3066\u3001\u4ed6\u306e\u30d5\u30a9\u30fc\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u540c\u69d8\u306b\u52d5\u4f5c\u3059\u308bHTML\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;form id=\"myform\"&gt;\n\n  &lt;input type=\"<span id=\"urn:enhancement-cd45830a-dc92-404e-a4bc-3c9f63a10841\" class=\"textannotation\">text<\/span>\" name=\"your-name\" <span id=\"urn:enhancement-54e312b1-1476-45ba-84e5-ffd052d7cae3\" class=\"textannotation\">placeholder<\/span>=\"name\" \/&gt;\n\n  &lt;input-age name=\"your-age\"&gt;&lt;\/input-age&gt;\n\n  &lt;button&gt;submit&lt;\/button&gt;\n\n&lt;\/form&gt;\n<\/code><\/pre>\n<p>\u3053\u308c\u3067\u5341\u5206\u6a5f\u80fd\u3057\u307e\u3059\u304c\u3001\u5c11\u3057\u8907\u96d1\u306a\u611f\u3058\u306f\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/codepen.io\/craigbuckler\/pen\/JjWmxwo\">CodePen\u306e\u30c7\u30e2\u3067\u78ba\u8a8d\u3059\u308b<\/a><\/p>\n<p><a href=\"https:\/\/web.dev\/more-capable-form-controls\/\">\u8a73\u3057\u304f\u306f\u3001\u3088\u308a\u9ad8\u6a5f\u80fd\u306a\u30d5\u30a9\u30fc\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u8a18\u4e8b<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><span style=\"font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;font-size: 1rem\"><\/span><\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Web Components\u306f\u3001JavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u5730\u4f4d\u3068\u6027\u80fd\u304c\u5411\u4e0a\u3059\u308b\u4e2d\u3067\u3001\u8cdb\u540c\u3084\u4eba\u6c17\u3092\u5f97\u308b\u306e\u306b\u82e6\u52b4\u3057\u3066\u304d\u307e\u3057\u305f\u3002React\u3084<a href=\"https:\/\/kinsta.com\/jp\/blog\/javascript-libraries\/#vuejs\">Vue.js<\/a>\u3001<a href=\"https:\/\/kinsta.com\/blog\/php-vs-angular\/#what-is-angular\">Angular<\/a>\u306e\u7d4c\u9a13\u8005\u3067\u3042\u308c\u3070\u3001Web Components\u306f\u8907\u96d1\u3067\u4e0d\u683c\u597d\u306b\u898b\u3048\u308b\u3067\u3057\u3087\u3046\u3002\u7279\u306b\u3001\u30c7\u30fc\u30bf\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3084\u72b6\u614b\u7ba1\u7406\u3068\u3044\u3063\u305f\u6a5f\u80fd\u306e\u6b20\u5982\u306b\u3064\u3044\u3066\u3001\u305d\u306e\u3088\u3046\u306a\u5370\u8c61\u304c\u62b1\u304b\u308c\u304c\u3061\u3067\u3059\u3002<\/p>\n<p>\u307e\u3060\u89e3\u6c7a\u3059\u3079\u304d\u8ab2\u984c\u306f\u3042\u308a\u307e\u3059\u304c\u3001Web Components\u306e\u672a\u6765\u306f\u660e\u308b\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u3068\u3089\u308f\u308c\u305a\u3001\u8efd\u91cf\u3067\u9ad8\u901f\u3001\u305d\u3057\u3066JavaScript\u3060\u3051\u3067\u306f\u4e0d\u53ef\u80fd\u306a\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>10\u5e74\u524d\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-jquery\/\">jQuery<\/a>\u7121\u3057\u306e\u30b5\u30a4\u30c8\u69cb\u7bc9\u306b\u53d6\u308a\u7d44\u3080\u4eba\u306f\u307b\u3068\u3093\u3069\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u5404\u7a2e\u30d6\u30e9\u30a6\u30b6\u306f\u3001\u512a\u308c\u305f\u30cd\u30a4\u30c6\u30a3\u30d6\u306e\u4ee3\u66ff\u6848\uff08querySelector\u306a\u3069\uff09\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002\u540c\u3058\u3053\u3068\u304cJavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u3082\u8d77\u3053\u308a\u3001Web Components\u306f\u305d\u306e\u6700\u521d\u306e\u66ab\u5b9a\u7684\u306a\u4e00\u6b69\u3060\u3068\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><em>Web Components<\/em><em>\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u3001\u4f55\u304b\u7591\u554f\u306f\u3054\u3056\u3044\u307e\u3059\u304b\uff1f\u30b3\u30e1\u30f3\u30c8\u6b04\u3067\u304a\u805e\u304b\u305b\u304f\u3060\u3055\u3044\u3002<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8ab0\u306b\u3067\u3082\u3001\u3067\u304d\u308c\u3070\u3084\u308a\u305f\u304f\u306a\u3044\u3068\u601d\u3046\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u3042 &#8230;<\/p>\n","protected":false},"author":188,"featured_media":34542,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[142,482],"topic":[],"class_list":["post-34541","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-html","tag-javascript"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u30102026 \u5e74\u7248\u3011Web Components\u8a73\u7d30\u5165\u9580\u30ac\u30a4\u30c9<\/title>\n<meta name=\"description\" content=\"Web Components\u306f\u3001JavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u305b\u305a\u306b\u3001\u518d\u5229\u7528\u53ef\u80fd\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u5f0f\u306eHTML\u8981\u7d20\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u3001\u6a19\u6e96\u5316\u3055\u308c\u305f\u624b\u6cd5\u3067\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/jp\/blog\/web-components\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30102026\u5e74\u7248\u3011Web Components\u8a73\u7d30\u5165\u9580\u30ac\u30a4\u30c9\" \/>\n<meta property=\"og:description\" content=\"Web Components\u306f\u3001JavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u305b\u305a\u306b\u3001\u518d\u5229\u7528\u53ef\u80fd\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u5f0f\u306eHTML\u8981\u7d20\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u3001\u6a19\u6e96\u5316\u3055\u308c\u305f\u624b\u6cd5\u3067\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/web-components\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-14T11:10:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-11T08:35:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/04\/web-components.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Craig Buckler\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"Web Components\u306f\u3001JavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u305b\u305a\u306b\u3001\u518d\u5229\u7528\u53ef\u80fd\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u5f0f\u306eHTML\u8981\u7d20\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u3001\u6a19\u6e96\u5316\u3055\u308c\u305f\u624b\u6cd5\u3067\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/04\/web-components.png\" \/>\n<meta name=\"twitter:creator\" content=\"@craigbuckler\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Craig Buckler\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"5\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/web-components\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/web-components\/\"},\"author\":{\"name\":\"Craig Buckler\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/715d986404b06691ab3014e06596908e\"},\"headline\":\"\u30102026\u5e74\u7248\u3011Web Components\u8a73\u7d30\u5165\u9580\u30ac\u30a4\u30c9\",\"datePublished\":\"2022-04-14T11:10:07+00:00\",\"dateModified\":\"2023-07-11T08:35:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/web-components\/\"},\"wordCount\":385,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/web-components\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/04\/web-components.png\",\"keywords\":[\"html\",\"JavaScript\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/web-components\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/web-components\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/web-components\/\",\"name\":\"\u30102026 \u5e74\u7248\u3011Web Components\u8a73\u7d30\u5165\u9580\u30ac\u30a4\u30c9\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/web-components\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/web-components\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/04\/web-components.png\",\"datePublished\":\"2022-04-14T11:10:07+00:00\",\"dateModified\":\"2023-07-11T08:35:16+00:00\",\"description\":\"Web Components\u306f\u3001JavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u305b\u305a\u306b\u3001\u518d\u5229\u7528\u53ef\u80fd\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u5f0f\u306eHTML\u8981\u7d20\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u3001\u6a19\u6e96\u5316\u3055\u308c\u305f\u624b\u6cd5\u3067\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/web-components\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/web-components\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/web-components\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/04\/web-components.png\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/04\/web-components.png\",\"width\":1460,\"height\":730,\"caption\":\"\u30102022\u5e74\u7248\u3011Web Components\u8a73\u7d30\u5165\u9580\u30ac\u30a4\u30c9\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/web-components\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30102024\u5e74\u7248\u3011Web Components\u8a73\u7d30\u5165\u9580\u30ac\u30a4\u30c9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/715d986404b06691ab3014e06596908e\",\"name\":\"Craig Buckler\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8e76011e66720bd2e3e24e164aa6f0b2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8e76011e66720bd2e3e24e164aa6f0b2?s=96&d=mm&r=g\",\"caption\":\"Craig Buckler\"},\"description\":\"Freelance UK web developer, writer, and speaker. Has been around a long time and rants about standards and performance.\",\"sameAs\":[\"https:\/\/craigbuckler.com\/\",\"https:\/\/www.linkedin.com\/in\/craigbuckler\",\"https:\/\/x.com\/craigbuckler\",\"https:\/\/www.youtube.com\/channel\/UCQwdl5oBTWGhifS6bRGADMQ\"],\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/craigbuckler\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u30102026 \u5e74\u7248\u3011Web Components\u8a73\u7d30\u5165\u9580\u30ac\u30a4\u30c9","description":"Web Components\u306f\u3001JavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u305b\u305a\u306b\u3001\u518d\u5229\u7528\u53ef\u80fd\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u5f0f\u306eHTML\u8981\u7d20\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u3001\u6a19\u6e96\u5316\u3055\u308c\u305f\u624b\u6cd5\u3067\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kinsta.com\/jp\/blog\/web-components\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30102026\u5e74\u7248\u3011Web Components\u8a73\u7d30\u5165\u9580\u30ac\u30a4\u30c9","og_description":"Web Components\u306f\u3001JavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u305b\u305a\u306b\u3001\u518d\u5229\u7528\u53ef\u80fd\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u5f0f\u306eHTML\u8981\u7d20\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u3001\u6a19\u6e96\u5316\u3055\u308c\u305f\u624b\u6cd5\u3067\u3059\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/web-components\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2022-04-14T11:10:07+00:00","article_modified_time":"2023-07-11T08:35:16+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/04\/web-components.png","type":"image\/png"}],"author":"Craig Buckler","twitter_card":"summary_large_image","twitter_description":"Web Components\u306f\u3001JavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u305b\u305a\u306b\u3001\u518d\u5229\u7528\u53ef\u80fd\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u5f0f\u306eHTML\u8981\u7d20\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u3001\u6a19\u6e96\u5316\u3055\u308c\u305f\u624b\u6cd5\u3067\u3059\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/04\/web-components.png","twitter_creator":"@craigbuckler","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Craig Buckler","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"5\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/web-components\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/web-components\/"},"author":{"name":"Craig Buckler","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/715d986404b06691ab3014e06596908e"},"headline":"\u30102026\u5e74\u7248\u3011Web Components\u8a73\u7d30\u5165\u9580\u30ac\u30a4\u30c9","datePublished":"2022-04-14T11:10:07+00:00","dateModified":"2023-07-11T08:35:16+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/web-components\/"},"wordCount":385,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/web-components\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/04\/web-components.png","keywords":["html","JavaScript"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/web-components\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/web-components\/","url":"https:\/\/kinsta.com\/jp\/blog\/web-components\/","name":"\u30102026 \u5e74\u7248\u3011Web Components\u8a73\u7d30\u5165\u9580\u30ac\u30a4\u30c9","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/web-components\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/web-components\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/04\/web-components.png","datePublished":"2022-04-14T11:10:07+00:00","dateModified":"2023-07-11T08:35:16+00:00","description":"Web Components\u306f\u3001JavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u305b\u305a\u306b\u3001\u518d\u5229\u7528\u53ef\u80fd\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u5f0f\u306eHTML\u8981\u7d20\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u3001\u6a19\u6e96\u5316\u3055\u308c\u305f\u624b\u6cd5\u3067\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/web-components\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/web-components\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/web-components\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/04\/web-components.png","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/04\/web-components.png","width":1460,"height":730,"caption":"\u30102022\u5e74\u7248\u3011Web Components\u8a73\u7d30\u5165\u9580\u30ac\u30a4\u30c9"},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/web-components\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"\u30102024\u5e74\u7248\u3011Web Components\u8a73\u7d30\u5165\u9580\u30ac\u30a4\u30c9"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/715d986404b06691ab3014e06596908e","name":"Craig Buckler","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8e76011e66720bd2e3e24e164aa6f0b2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8e76011e66720bd2e3e24e164aa6f0b2?s=96&d=mm&r=g","caption":"Craig Buckler"},"description":"Freelance UK web developer, writer, and speaker. Has been around a long time and rants about standards and performance.","sameAs":["https:\/\/craigbuckler.com\/","https:\/\/www.linkedin.com\/in\/craigbuckler","https:\/\/x.com\/craigbuckler","https:\/\/www.youtube.com\/channel\/UCQwdl5oBTWGhifS6bRGADMQ"],"url":"https:\/\/kinsta.com\/jp\/blog\/author\/craigbuckler\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/34541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/188"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=34541"}],"version-history":[{"count":7,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/34541\/revisions"}],"predecessor-version":[{"id":47644,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/34541\/revisions\/47644"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/34541\/translations\/en"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/34541\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/34541\/translations\/de"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/34541\/translations\/es"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/34541\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/34541\/translations\/pt"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/34541\/translations\/nl"},{"embeddable":true,"hreflang":"sv","title":"Swedish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/34541\/translations\/se"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/34541\/translations\/jp"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/34541\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/34542"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=34541"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=34541"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=34541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}