mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Removed the sanitize_dom_id method because HTML5 doctype let's us use anything except nothing and whitespace for id's
This commit is contained in:
parent
8de4d71f5d
commit
c8eeb9f45a
1 changed files with 1 additions and 6 deletions
|
@ -75,12 +75,7 @@ module ActionController
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue