提交 c8eeb9f4 编写于 作者: L Larz Conwell

Removed the sanitize_dom_id method because HTML5 doctype let's us use anything...

Removed the sanitize_dom_id method because HTML5 doctype let's us use anything except nothing and whitespace for id's
上级 8de4d71f
......@@ -75,12 +75,7 @@ def dom_id(record, prefix = nil)
def record_key_for_dom_id(record)
record = record.to_model if record.respond_to?(:to_model)
key = record.to_key
key ? sanitize_dom_id(key.join('_')) : key
end
# Replaces characters that are invalid in HTML DOM ids with valid ones.
def sanitize_dom_id(candidate_id)
candidate_id # TODO implement conversion to valid DOM id values
key ? key.join('_') : key
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册