{"id":128825,"date":"2023-01-23T02:00:19","date_gmt":"2023-01-23T10:00:19","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=128825"},"modified":"2023-01-23T02:34:18","modified_gmt":"2023-01-23T10:34:18","slug":"javascript-add-an-event-listener-to-a-target-with-dashes","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/","title":{"rendered":"JavaScript: Add an event listener to a target with dashes ( &#8211; )"},"content":{"rendered":"\n<p>MDN describes the addEventListener() method as a function that will be called whenever the specified event is delivered to the target. In order for the code to work, you need to access the target.<\/p>\n\n\n\n<p>Common targets are Element, Document, Window, and any object that supports events (such as XMLHttpRequest). In this article, we want to access an element so that we can assign it as a target for a specified event.<\/p>\n\n\n\n<p>JavaScript will throw an error when you try to add an event listener to a node with a specific element ID, Class, or Name with a dash. JavaScript doesn&#8217;t like dashes ( &#8211; ), it will understand it as a minus. This article provides two solutions to resolve a JavaScript error caused by a dash ( &#8211; ) in the name of an element.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-solved-how-to-resolve-a-javascript-error-caused-by-a-dash\">Solved: How to resolve a JavaScript error caused by a dash<\/h2>\n\n\n\n<p>To prevent JavaScript from understanding the dash as a minus use an alternative way of selecting that node that takes strings.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-use-queryselector\">Use querySelector()&nbsp;<\/h3>\n\n\n\n<p>In JavaScript querySelector() takes a string that can include the dashes. The stringification ensures that JavaScript does not understand the dash as a minus. According to MDN, the Document method querySelector() returns the first Element within the document that matches the specified selector, or group of selectors. If no matches are found, null is returned.&nbsp;<\/p>\n\n\n\n<p>It allows you to select an element with a specific ID using the ID selector e.g. instead of `e.target.new-task-description` use `e.target.querySelector(&#8216;#new-task-description&#8217;)`.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1248\" height=\"364\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Screen-Shot-2023-01-23-at-6.28.31-PM.png\" alt=\"\" class=\"wp-image-128833\"\/><\/figure>\n\n\n\n<p>You can also select an element with a class using the class selector e.g. `e.target.querySelector(&#8216;.new-task-description&#8217;)`.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-rename-the-node\">Rename the node<\/h3>\n\n\n\n<p>There is a hack solution that is not recommended but works. Rename the node by replacing the dash in the ID or Class name with an underscore or simply remove the dash in all references to the node, e.g. `e.target.new_task_description.value` and `e.target.newtaskdescription.value`.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1250\" height=\"328\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Screen-Shot-2023-01-23-at-6.22.46-PM.png\" alt=\"\" class=\"wp-image-128829\"\/><\/figure>\n\n\n\n<p>Any one of the 2 solutions will fix the JavaScript error; however, using a querySelector is the preferred solution because it is more elegant.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-creating-a-variable\">Creating a variable<\/h3>\n\n\n\n<p>Another solution that I explored involved creating a variable called taskInput, assigning the node to that variable, and then chaining the variable taskInput to the target e.g. newTextInput = document.getElementById(&#8220;new-task-description&#8221;) but JavaScript did not work as I had expected when I tested it in the DOM.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-other-methods-to-try\">Other methods to try<\/h3>\n\n\n\n<p>When I tried to chain the getElementByID() method e.g. e.target.getElementByID(\u2018new-task-description\u2019), JavaScript threw an error. Perhaps there was a syntax error that I made and did not catch.<\/p>\n\n\n\n<p>If I didn\u2019t make a syntax error then in theory that would mean that chaining the getElementByClassName() method wouldn\u2019t work either.<\/p>\n\n\n\n<p>There are other methods that I did not try that you might want to check out depending on the element.<\/p>\n\n\n\n<p>You can use the document.getElementsByTagName() method to select all elements of a specific HTML tag, like this:<\/p>\n\n\n\n<p>getElementsByTagName(\u2018li\u2019)<\/p>\n\n\n\n<p>And you can use the document.getElementsByName() method to select all elements with a specific name attribute, like this:<\/p>\n\n\n\n<p>getElementsByName(\u2018new-task\u2019)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-testing-and-learning\">Testing and learning<\/h2>\n\n\n\n<p>I\u2019m enrolled in the Flatiron School Software Engineering flex program and I\u2019ve been working through several labs. I was inspired to write this because I could not find an article to help me identify why JavaScript was throwing me an error.&nbsp;<\/p>\n\n\n\n<p>Thankfully, the Flatiron School has technical coaches that helped me identify that the error was caused by JavaScript interpreting the dash as a minus, which I would have never guessed without their help because my syntax was correct. Hopefully, others learning JavaScript that don\u2019t have access to technical coaches find this article helpful. Happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"MDN describes the addEventListener() method as a function that will be called whenever the specified event is delivered to the target. In order for the code to work, you need to access the target. Common targets are Element, Document, Window, and any object that supports events (such as XMLHttpRequest). In this article, we want to&hellip;","protected":false},"author":238,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[416,11933],"tags":[],"class_list":{"0":"post-128825","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-code","7":"category-javascript"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":"","is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>JavaScript: Add an event listener to a target with dashes - in the ID name<\/title>\n<meta name=\"description\" content=\"JavaScript will throw an error when you try to add an event listener to a target ID with dashes. Read about two solutions to this problem.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript: Add an event listener to a target with dashes ( - )\" \/>\n<meta property=\"og:description\" content=\"JavaScript will throw an error when you try to add an event listener to a target ID with dashes. Read about two solutions to this problem.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-23T10:00:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-23T10:34:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Screen-Shot-2023-01-23-at-6.28.31-PM.png\" \/>\n<meta name=\"author\" content=\"Lela Deslauriers\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lela Deslauriers\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/\"},\"author\":{\"name\":\"Lela Deslauriers\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/62dae485f5742e33eb0e4de59a7203d8\"},\"headline\":\"JavaScript: Add an event listener to a target with dashes ( &#8211; )\",\"datePublished\":\"2023-01-23T10:00:19+00:00\",\"dateModified\":\"2023-01-23T10:34:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/\"},\"wordCount\":631,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Screen-Shot-2023-01-23-at-6.28.31-PM.png\",\"articleSection\":[\"Coding\",\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/\",\"name\":\"JavaScript: Add an event listener to a target with dashes - in the ID name\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Screen-Shot-2023-01-23-at-6.28.31-PM.png\",\"datePublished\":\"2023-01-23T10:00:19+00:00\",\"dateModified\":\"2023-01-23T10:34:18+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/62dae485f5742e33eb0e4de59a7203d8\"},\"description\":\"JavaScript will throw an error when you try to add an event listener to a target ID with dashes. Read about two solutions to this problem.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Screen-Shot-2023-01-23-at-6.28.31-PM.png\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Screen-Shot-2023-01-23-at-6.28.31-PM.png\",\"width\":1248,\"height\":364},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Coding\",\"item\":\"https:\/\/careerkarma.com\/blog\/code\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript: Add an event listener to a target with dashes ( &#8211; )\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/62dae485f5742e33eb0e4de59a7203d8\",\"name\":\"Lela Deslauriers\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Lela-Deslauriers.jpeg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Lela-Deslauriers.jpeg\",\"caption\":\"Lela Deslauriers\"},\"description\":\"Lela Deslauriers was a Group Product Manager at Career Karma. She\u2019s passionate about building digital products and has over 10 years of experience in the tech industry. After hearing about Career Karma community members' experiences at the Flatiron School, she decided to enroll herself in the Software Engineering Flex program to gain and share practical technical knowledge.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/lela-deslauriers\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"JavaScript: Add an event listener to a target with dashes - in the ID name","description":"JavaScript will throw an error when you try to add an event listener to a target ID with dashes. Read about two solutions to this problem.","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:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript: Add an event listener to a target with dashes ( - )","og_description":"JavaScript will throw an error when you try to add an event listener to a target ID with dashes. Read about two solutions to this problem.","og_url":"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2023-01-23T10:00:19+00:00","article_modified_time":"2023-01-23T10:34:18+00:00","og_image":[{"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Screen-Shot-2023-01-23-at-6.28.31-PM.png","type":"","width":"","height":""}],"author":"Lela Deslauriers","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"Lela Deslauriers","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/"},"author":{"name":"Lela Deslauriers","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/62dae485f5742e33eb0e4de59a7203d8"},"headline":"JavaScript: Add an event listener to a target with dashes ( &#8211; )","datePublished":"2023-01-23T10:00:19+00:00","dateModified":"2023-01-23T10:34:18+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/"},"wordCount":631,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Screen-Shot-2023-01-23-at-6.28.31-PM.png","articleSection":["Coding","JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/","url":"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/","name":"JavaScript: Add an event listener to a target with dashes - in the ID name","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Screen-Shot-2023-01-23-at-6.28.31-PM.png","datePublished":"2023-01-23T10:00:19+00:00","dateModified":"2023-01-23T10:34:18+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/62dae485f5742e33eb0e4de59a7203d8"},"description":"JavaScript will throw an error when you try to add an event listener to a target ID with dashes. Read about two solutions to this problem.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Screen-Shot-2023-01-23-at-6.28.31-PM.png","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Screen-Shot-2023-01-23-at-6.28.31-PM.png","width":1248,"height":364},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/javascript-add-an-event-listener-to-a-target-with-dashes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Coding","item":"https:\/\/careerkarma.com\/blog\/code\/"},{"@type":"ListItem","position":3,"name":"JavaScript: Add an event listener to a target with dashes ( &#8211; )"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/62dae485f5742e33eb0e4de59a7203d8","name":"Lela Deslauriers","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Lela-Deslauriers.jpeg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2023\/01\/Lela-Deslauriers.jpeg","caption":"Lela Deslauriers"},"description":"Lela Deslauriers was a Group Product Manager at Career Karma. She\u2019s passionate about building digital products and has over 10 years of experience in the tech industry. After hearing about Career Karma community members' experiences at the Flatiron School, she decided to enroll herself in the Software Engineering Flex program to gain and share practical technical knowledge.","url":"https:\/\/careerkarma.com\/blog\/author\/lela-deslauriers\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/128825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/238"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=128825"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/128825\/revisions"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=128825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=128825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=128825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}