{"id":9970,"date":"2024-03-15T04:05:16","date_gmt":"2024-03-14T19:05:16","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/"},"modified":"2025-08-04T04:43:46","modified_gmt":"2025-08-03T19:43:46","slug":"javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/","title":{"rendered":"JavaScript textContent, innerText, innerHTML\u306e\u9055\u3044\u3068\u4f7f\u3044\u5206\u3051"},"content":{"rendered":"<p>textContent\u3001innerText\u3001\u304a\u3088\u3073innerHTML\u306f\u3001\u8981\u7d20\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u308a\u8a2d\u5b9a\u3057\u305f\u308a\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002<\/p>\n<ol>\n<li>textContent: textContent\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u8981\u7d20\u306b\u542b\u307e\u308c\u308b\u5168\u3066\u306e\u30c6\u30ad\u30b9\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u5b50\u8981\u7d20\u306b\u542b\u307e\u308c\u308b\u30c6\u30ad\u30b9\u30c8\u3082\u542b\u307e\u308c\u307e\u3059\u3002\u8981\u7d20\u306e\u30c6\u30ad\u30b9\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u53d6\u5f97\u307e\u305f\u306f\u8a2d\u5b9a\u3059\u308b\u969b\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>Can you help me with my homework? -&gt; \u5bbf\u984c\u3092\u624b\u4f1d\u3063\u3066\u304f\u308c\u307e\u3059\u304b\uff1f<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">let<\/span> element = <span class=\"hljs-variable language_\">document<\/span>.<span class=\"hljs-title function_\">getElementById<\/span>(<span class=\"hljs-string\">\"example\"<\/span>);\r\n<span class=\"hljs-variable language_\">console<\/span>.<span class=\"hljs-title function_\">log<\/span>(element.<span class=\"hljs-property\">textContent<\/span>); <span class=\"hljs-comment\">\/\/ \u83b7\u53d6\u5143\u7d20\u7684\u6587\u672c\u5185\u5bb9<\/span>\r\nelement.<span class=\"hljs-property\">textContent<\/span> = <span class=\"hljs-string\">\"\u8fd9\u662f\u65b0\u7684\u6587\u672c\u5185\u5bb9\"<\/span>; <span class=\"hljs-comment\">\/\/ \u8bbe\u7f6e\u5143\u7d20\u7684\u6587\u672c\u5185\u5bb9<\/span>\r\n<\/code><\/pre>\n<ol>\n<li>innerText\u306f\u3001\u8981\u7d20\u306e\u53ef\u8996\u30c6\u30ad\u30b9\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8fd4\u3057\u3001\u975e\u8868\u793a\u306e\u8981\u7d20\u3084\u30b9\u30bf\u30a4\u30eb\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u542b\u307f\u307e\u305b\u3093\u3002\u8981\u7d20\u306e\u53ef\u8996\u30c6\u30ad\u30b9\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u53d6\u5f97\u307e\u305f\u306f\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u660e\u65e5\u306f\u53cb\u9054\u3068\u6620\u753b\u3092\u898b\u306b\u884c\u304d\u307e\u3059\u3002<\/p>\n<p>\u53cb\u9054\u3068\u660e\u65e5\u6620\u753b\u3092\u898b\u306b\u884c\u304f\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">let<\/span> element = <span class=\"hljs-variable language_\">document<\/span>.<span class=\"hljs-title function_\">getElementById<\/span>(<span class=\"hljs-string\">\"example\"<\/span>);\r\n<span class=\"hljs-variable language_\">console<\/span>.<span class=\"hljs-title function_\">log<\/span>(element.<span class=\"hljs-property\">innerText<\/span>); <span class=\"hljs-comment\">\/\/ \u83b7\u53d6\u5143\u7d20\u7684\u53ef\u89c1\u6587\u672c\u5185\u5bb9<\/span>\r\nelement.<span class=\"hljs-property\">innerText<\/span> = <span class=\"hljs-string\">\"\u8fd9\u662f\u65b0\u7684\u53ef\u89c1\u6587\u672c\u5185\u5bb9\"<\/span>; <span class=\"hljs-comment\">\/\/ \u8bbe\u7f6e\u5143\u7d20\u7684\u53ef\u89c1\u6587\u672c\u5185\u5bb9<\/span>\r\n<\/code><\/pre>\n<ol>\n<li>innerHTML\uff1a\u3053\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001\u8981\u7d20\u306e\u3059\u3079\u3066\u306eHTML\u30b3\u30f3\u30c6\u30f3\u30c4\uff08\u30bf\u30b0\u3068\u30c6\u30ad\u30b9\u30c8\u3092\u542b\u3080\uff09\u3092\u8fd4\u3057\u307e\u3059\u3002\u8981\u7d20\u306eHTML\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u53d6\u5f97\u307e\u305f\u306f\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>Can you please explain that to me?<\/p>\n<p>\u308f\u304b\u308a\u3084\u3059\u304f\u6559\u3048\u3066\u3044\u305f\u3060\u3051\u307e\u3059\u304b\uff1f<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">let<\/span> element = <span class=\"hljs-variable language_\">document<\/span>.<span class=\"hljs-title function_\">getElementById<\/span>(<span class=\"hljs-string\">\"example\"<\/span>);\r\n<span class=\"hljs-variable language_\">console<\/span>.<span class=\"hljs-title function_\">log<\/span>(element.<span class=\"hljs-property\">innerHTML<\/span>); <span class=\"hljs-comment\">\/\/ \u83b7\u53d6\u5143\u7d20\u7684HTML\u5185\u5bb9<\/span>\r\nelement.<span class=\"hljs-property\">innerHTML<\/span> = <span class=\"hljs-string\">\"&lt;p&gt;\u8fd9\u662f\u65b0\u7684HTML\u5185\u5bb9&lt;\/p&gt;\"<\/span>; <span class=\"hljs-comment\">\/\/ \u8bbe\u7f6e\u5143\u7d20\u7684HTML\u5185\u5bb9<\/span>\r\n<\/code><\/pre>\n<p>\u307e\u3068\u3081\uff1atextContent\u306f\u8981\u7d20\u306e\u30c6\u30ad\u30b9\u30c8\u5185\u5bb9\u3092\u53d6\u5f97\u304a\u3088\u3073\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3001innerText\u306f\u8981\u7d20\u306e\u53ef\u8996\u30c6\u30ad\u30b9\u30c8\u5185\u5bb9\u3092\u53d6\u5f97\u304a\u3088\u3073\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3001innerHTML\u306f\u8981\u7d20\u306eHTML\u5185\u5bb9\u3092\u53d6\u5f97\u304a\u3088\u3073\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u8981\u7d20\u306e\u5185\u5bb9\u3092\u64cd\u4f5c\u3059\u308b\u969b\u306b\u9069\u5207\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>textContent\u3001innerText\u3001\u304a\u3088\u3073innerHTML\u306f\u3001\u8981\u7d20\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u308a\u8a2d\u5b9a\u3057\u305f\u308a\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002 textContent: textContent\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u8981\u7d20\u306b\u542b\u307e\u308c\u308b\u5168\u3066 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[530,4276,4275,56,4274],"class_list":["post-9970","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-dom","tag-innerhtml","tag-innertext","tag-javascript","tag-textcontent"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JavaScript textContent, innerText, innerHTML\u306e\u9055\u3044\u3068\u4f7f\u3044\u5206\u3051 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"JavaScript\u3067textContent, innerText, innerHTML\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u305d\u308c\u305e\u308c\u306e\u9055\u3044\u3001DOM\u64cd\u4f5c\u6642\u306e\u4f7f\u3044\u5206\u3051\u3092\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u4ed8\u304d\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3057\u307e\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:\/\/www.silicloud.com\/ja\/blog\/javascript\u3067textcontent\u3001innertext\u3001\u304a\u3088\u3073innerhtml\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript textContent, innerText, innerHTML\u306e\u9055\u3044\u3068\u4f7f\u3044\u5206\u3051\" \/>\n<meta property=\"og:description\" content=\"JavaScript\u3067textContent, innerText, innerHTML\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u305d\u308c\u305e\u308c\u306e\u9055\u3044\u3001DOM\u64cd\u4f5c\u6642\u306e\u4f7f\u3044\u5206\u3051\u3092\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u4ed8\u304d\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/javascript\u3067textcontent\u3001innertext\u3001\u304a\u3088\u3073innerhtml\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-14T19:05:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-03T19:43:46+00:00\" \/>\n<meta name=\"author\" content=\"\u590f\u6a39, \u98a8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u590f\u6a39, \u98a8\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/\",\"name\":\"JavaScript textContent, innerText, innerHTML\u306e\u9055\u3044\u3068\u4f7f\u3044\u5206\u3051 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-14T19:05:16+00:00\",\"dateModified\":\"2025-08-03T19:43:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d\"},\"description\":\"JavaScript\u3067textContent, innerText, innerHTML\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u305d\u308c\u305e\u308c\u306e\u9055\u3044\u3001DOM\u64cd\u4f5c\u6642\u306e\u4f7f\u3044\u5206\u3051\u3092\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u4ed8\u304d\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript textContent, innerText, innerHTML\u306e\u9055\u3044\u3068\u4f7f\u3044\u5206\u3051\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d\",\"name\":\"\u590f\u6a39, \u98a8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g\",\"caption\":\"\u590f\u6a39, \u98a8\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/natsukikaze\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"JavaScript textContent, innerText, innerHTML\u306e\u9055\u3044\u3068\u4f7f\u3044\u5206\u3051 - Blog - Silicon Cloud","description":"JavaScript\u3067textContent, innerText, innerHTML\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u305d\u308c\u305e\u308c\u306e\u9055\u3044\u3001DOM\u64cd\u4f5c\u6642\u306e\u4f7f\u3044\u5206\u3051\u3092\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u4ed8\u304d\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3057\u307e\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:\/\/www.silicloud.com\/ja\/blog\/javascript\u3067textcontent\u3001innertext\u3001\u304a\u3088\u3073innerhtml\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\/","og_locale":"ja_JP","og_type":"article","og_title":"JavaScript textContent, innerText, innerHTML\u306e\u9055\u3044\u3068\u4f7f\u3044\u5206\u3051","og_description":"JavaScript\u3067textContent, innerText, innerHTML\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u305d\u308c\u305e\u308c\u306e\u9055\u3044\u3001DOM\u64cd\u4f5c\u6642\u306e\u4f7f\u3044\u5206\u3051\u3092\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u4ed8\u304d\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/javascript\u3067textcontent\u3001innertext\u3001\u304a\u3088\u3073innerhtml\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-14T19:05:16+00:00","article_modified_time":"2025-08-03T19:43:46+00:00","author":"\u590f\u6a39, \u98a8","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u590f\u6a39, \u98a8","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/","name":"JavaScript textContent, innerText, innerHTML\u306e\u9055\u3044\u3068\u4f7f\u3044\u5206\u3051 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-14T19:05:16+00:00","dateModified":"2025-08-03T19:43:46+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d"},"description":"JavaScript\u3067textContent, innerText, innerHTML\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u305d\u308c\u305e\u308c\u306e\u9055\u3044\u3001DOM\u64cd\u4f5c\u6642\u306e\u4f7f\u3044\u5206\u3051\u3092\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u4ed8\u304d\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"JavaScript textContent, innerText, innerHTML\u306e\u9055\u3044\u3068\u4f7f\u3044\u5206\u3051"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d","name":"\u590f\u6a39, \u98a8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g","caption":"\u590f\u6a39, \u98a8"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/natsukikaze\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/javascript%e3%81%a7textcontent%e3%80%81innertext%e3%80%81%e3%81%8a%e3%82%88%e3%81%b3innerhtml%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/9970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=9970"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/9970\/revisions"}],"predecessor-version":[{"id":331009,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/9970\/revisions\/331009"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=9970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=9970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=9970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}