microdata の itemref の解釈
microdata の itemref の解釈がよくわからない。
itemref で指定した ID を持つ要素の下もまた、そのアイテムのプロパティとして加える的なことが書いてあるが、じゃあ itemref で指定した ID を持つ要素が、別の itemscope の中にあったらどうなるのか?というのがよくわからない。
たぶんどちらにも属するプロパティになる?ような気がするけど、うまく仕様を読めていない。
All itemref attributes in a Document must be such that there are no cycles in the graph formed from representing each item in the Document as a node in the graph and each property of an item whose value is another item as an edge in the graph connecting those two items.
たぶんこの辺なんだけど、英語が難しくて正確に理解できないので書きながら理解することを試みる……
All itemref attributes in a Document must be such
はいいとして、そのあとの区切りがどこに入ってるのか…
- All itemref attributes in a Document must be such
- that there are no cycles in the graph formed from representing
- each item in the Document as a node in the graph
- and
- each property of an item whose value is another item as an edge in the graph
- connecting those two items.
こう読むのかなあ。文意としては「どんな場合でも循環参照がおきてはならない」で、事例が書いてあると思う、のでそれぞれ訳したい感じだけど、うまく訳せない……
しかし、ここは単に循環参照に言及しているだけで、1つの itemprop が複数のアイテムに属するかどうかとは関係ないか…
関連エントリー
- textarea.value は代入すると値が変わる 以下のような挙動をする。 var textarea = document.createElement('textarea'); textar...
- MCD-ST Liberty SW License Agreement V2 はフリーなライセンスか? STM32CubeMX でジェネレートされるコードは MCD-ST Liberty SW License Agreement V2 というラ...
- microdata を適当に抜き出す Perl スクリプト あんまり仕様書読みこめてないけど書くだけ書いてみた。CPAN にあるのは依存がひどいし、別に HTML::Parser 的なもの一個の依存で...
- AVR progmem に long を置く方法 PROGMEM をつけると (const も必須)、その変数の示す先がプログラムメモリー領域になる。そのままだと使えないのでワーキングメモリ...
- Sierra にしたらリモートの日本語が化けるようになった 以下のような環境で日本語が化けるようになった。 macOS Sierra リモートで screen を使っている ssh host -t s...