Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ノードのouterHmlメソッドによって返されるソースコード内の要素の正確な位置を知る方法はありますか?
いいえ、これは不可能です。解析フェーズの後、ソースの位置は DOM で追跡されないため、要素にはこの情報が含まれません。
何を実装しようとしていますか?それを行う別の方法があるかもしれません。