Skip to content

MewenLeHo/detectAutocomplete

Repository files navigation

detectAutocomplete

A simple tool for validating the autocomplete attributes of HTML form elements according to the HTML specification.

License: MIT

CI/CD Status

Workflows

Lint and Minify workflow Release workflow

Latest Release

Latest Release

Demo

Check out the demo

Quick Start Guide

For auditors:

  • Install the bookmarklet
  • Visit a page with forms
  • Click to validate
  • Review results

For developers:

  • Fork the repository
  • Review source code
  • Run test suite
  • Submit improvements

Common Use Cases

Accessibility audits:

  • Form compliance checking
  • Autocomplete implementation review
  • Error detection and reporting

Development:

  • Form validation during development
  • Quality assurance testing
  • Cross-browser compatibility checks

Documentation:

  • Generate validation reports
  • Export detailed CSV audits
  • Track compliance issues
  • Create accessibility reports

Latest Updates

Core Improvements:

  • Added CSV export with detailed validation data
  • Enhanced data export capabilities
  • Improved validation engine

UI & Accessibility:

  • Dark/light theme with system preference detection
  • Enhanced visual feedback and animations
  • Improved ARIA implementation

Architecture:

  • Centralized message system
  • Improved control panel layout
  • Enhanced validation reporting

Installation & Usage

Installation:

  • Create a new bookmark in your browser
  • Copy the minified code from detectAutocomplete.min.js
  • Paste it as the bookmark URL

Basic Usage:

  • Navigate to any webpage with forms
  • Click the bookmarklet to start validation
  • Review results and error messages
  • Export reports if needed

Results Indicators:

  • 🟒 Green: Valid autocomplete value
  • πŸ”΄ Red: Invalid syntax with suggestion
  • 🟑 Yellow: Missing attribute (optional)

Control Panel Features:

  • Validation statistics
  • Visual indicators toggle
  • Theme switching
  • CSV export
  • Panel controls
  • Validation reset

Core Features

Validation Engine:

  • πŸ” Form Analysis: Comprehensive form element scanning
  • βœ… Syntax Validation: Advanced checking with suggestions
  • βš™οΈ Multiple Validation Types: Syntax, sections, tokens

User Interface:

  • 🎯 Visual Feedback: Clear status indicators
  • πŸŒ“ Theme System: Automatic light/dark modes
  • ✨ Modern Design: Responsive layout with animations

Accessibility & Export:

  • β™Ώ A11y Support: Screen reader optimization
  • 🌐 I18n Ready: Centralized messaging
  • πŸ“Š Data Export: Detailed CSV reports

Supported Values

Personal Information:

  • name, given-name, family-name
  • email, tel, url
  • organization, organization-title
  • bday, sex, language

Address Information:

  • street-address, country, postal-code
  • address-line1, address-line2
  • address-level1, address-level2
  • country-name

Payment Information:

  • cc-name, cc-number, cc-exp
  • cc-type, transaction-currency
  • transaction-amount

Credentials:

  • username, current-password
  • new-password, one-time-code

Section Prefixes:

  • shipping: Shipping information
  • billing: Billing details
  • home, work: Contact information
  • mobile, fax, pager: Phone numbers

Full list of supported values β†’

Technical Architecture

Core Components:

  • Validation Layer:

    • Syntax and error detection
    • Section validation
    • Token processing
    • Error management
  • Interface Layer:

    • Control panel
    • Theme management
    • Animation system
    • Visual feedback
  • Data Layer:

    • Message handling
    • Internationalization
    • Export system
    • Metadata management

Performance Features:

  • Optimized DOM operations
  • Efficient animations
  • Batched updates
  • Smart data structures

Process Flow:

  • Form detection
  • Attribute analysis
  • Validation processing
  • Error handling
  • Visual feedback
  • Data export

Validation & Error Handling

Validation Types:

  • Syntax Checking:

    • Standard values
    • Case sensitivity
    • Special characters
    • Unicode support
  • Section Analysis:

    • Prefix validation
    • Combined values
    • Token ordering
    • Format verification

Error Management:

  • Detailed messages
  • Context-specific feedback
  • Correction suggestions
  • Standards references

Export Capabilities:

  • Structured reports
  • Field metadata
  • Validation status
  • Error details

Browser Support & Requirements

Supported Browsers:

  • Google Chrome (latest)
  • Mozilla Firefox (latest)
  • Safari 14+
  • Microsoft Edge (Chromium)

Feature Support:

  • CSV export
  • Theme switching
  • Animations
  • Flexible UI

Requirements:

  • Modern JavaScript support
  • DOM manipulation capabilities
  • CSS Grid support
  • Local storage (for preferences)

Limitations & Scope

Included Features:

  • Syntax validation
  • HTML5 compliance
  • Error detection
  • Correction suggestions
  • Export capabilities

Not Included:

  • Semantic validation
  • Field type checking
  • Content validation
  • Business logic

Technical Limitations:

  • Browser compatibility
  • Performance constraints
  • DOM manipulation limits
  • Export size limits

Future Development

For next steps, please refer to the ROADMAP.md file.

Contributing

For contributing guidelines, please refer to the CONTRIBUTING.md file.

Code of Conduct

We are committed to maintaining a welcoming and respectful community. Please read our Code of Conduct for more details.

Support & Community

Stay Updated:

  • Release notifications
  • Changelog updates
  • Feature announcements
  • Community news

Version Information

Current Version: 1.3.2

Core Features:

  • Full syntax validation
  • Section prefix support
  • Error suggestions
  • CSV export
  • Theme switching
  • Enhanced UI

Recent Improvements:

  • Centralized message system
  • Enhanced accessibility
  • Improved data export
  • System theme detection
  • Performance optimizations

Upcoming Features:

  • Token order validation
  • Advanced section rules
  • Enhanced error reporting
  • Result caching
  • DOM optimization
  • Keyboard shortcuts

Project Information

Repository:

Contributors:

Resources:

License

License: MIT
This project is licensed under the MIT License. See the LICENSE file for more details.

About

Bookmarklet to detect autocomplete attribute on form elements.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •