<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kamegu3</author_name>
  <author_url>https://blog.hatena.ne.jp/kamegu3/</author_url>
  <blog_title>kamegu's memo</blog_title>
  <blog_url>https://kamegu.hateblo.jp/</blog_url>
  <categories>
    <anon>svg</anon>
  </categories>
  <description>結論から言うと、セレクタを使ってHTML要素を取得するくらいしかjQueryは使えなさそう。 addClassとかつかってスタイルを変えれれば便利なんだけど、できなかった。例えば次のような直線をひくとする。 &lt;svg id=&quot;svg1&quot;&gt; &lt;line x1=&quot;100&quot; y1=&quot;100&quot; x2=&quot;200&quot; y2=&quot;300&quot; stroke=&quot;#000&quot; class=&quot;cls1&quot;/&gt; &lt;/svg&gt; SVG要素作成 jQueryを使って次のように書きたいけどこれだとダメっぽい。 var $line = $('&lt;line&gt;'); どうすればいいかというと、 var line = document.cre…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkamegu.hateblo.jp%2Fentry%2Fsvg%2Fwith-jquery&quot; title=&quot;jQueryでSVGを扱う - kamegu&amp;#39;s memo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-09-01 15:06:23</published>
  <title>jQueryでSVGを扱う</title>
  <type>rich</type>
  <url>https://kamegu.hateblo.jp/entry/svg/with-jquery</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
